Skip to content

Commit 1b4900a

Browse files
committed
Fix typos in JS which break IE < 9
1 parent af921c4 commit 1b4900a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/scripts/lbStickyPolicy.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
}
260260
});
261261
},
262-
delete: function(stickyRuleID, complete, error) {
262+
'delete': function(stickyRuleID, complete, error) {
263263
$.ajax({
264264
url: createURL('deleteLBStickinessPolicy'),
265265
data: {
@@ -296,10 +296,10 @@
296296
};
297297

298298
// Delete existing rule
299-
if (data.methodname != 'None') {
299+
if (data.methodname !== 'None') {
300300
addStickyPolicy();
301301
} else {
302-
cloudStack.lbStickyPolicy.actions.delete(stickyRuleID, complete, error);
302+
cloudStack.lbStickyPolicy.actions['delete'](stickyRuleID, complete, error);
303303
}
304304
}
305305
}

0 commit comments

Comments
 (0)