bug 13148

Concatenate LB rule name if length too long

status 13148: resolved fixed
This commit is contained in:
bfederle 2012-01-30 15:45:01 -08:00
parent 8df1cfe087
commit d6ef879b44
2 changed files with 10 additions and 1 deletions

View File

@ -1942,6 +1942,9 @@
$.extend(item, {
_itemData: lbInstances,
_maxLength: {
name: 8
},
sticky: stickyData
});
});

View File

@ -93,7 +93,13 @@
$td.append($('<span>').html(start + ' - ' + end));
} else {
$td.append($('<span>').html(data[fieldName]));
if (data['_maxLength'] &&
data['_maxLength'][fieldName]) {
$td.append($('<span>').html(data[fieldName].toString().substr(0, data['_maxLength'][fieldName]).concat('...')));
} else {
$td.append($('<span>').html(data[fieldName]));
}
$td.attr('title', data[fieldName]);
}
} else if (field.select) {
$td.append($('<span>').html(