Merge pull request #1081 from nitin-maharana/CloudStack-Nitin15

CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to loadFor setting the width of each data item for each row of Port Forwarding rules, it was processing all rules.

Basically for each data item, it was searching in all rules, which is un-necessary.
If there are N-Rules, It was processing N-times.

Now, it only processes one time by taking all N-rules at a time.
The previous solution was of O(NxN). Now its changed to O(N).

* pr/1081:
  CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load

Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
Remi Bergsma 2015-11-28 14:51:31 +01:00
commit 48ade05370

View File

@ -278,9 +278,6 @@
$td.addClass('blank');
}
// Align width to main header
_medit.refreshItemWidths($multi);
if (data._hideFields &&
$.inArray(fieldName, data._hideFields) > -1) {
$td.addClass('disabled');