mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 13148
Concatenate LB rule name if length too long status 13148: resolved fixed
This commit is contained in:
parent
8df1cfe087
commit
d6ef879b44
@ -1942,6 +1942,9 @@
|
||||
|
||||
$.extend(item, {
|
||||
_itemData: lbInstances,
|
||||
_maxLength: {
|
||||
name: 8
|
||||
},
|
||||
sticky: stickyData
|
||||
});
|
||||
});
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user