Update editableList apis

This commit is contained in:
Nick O'Leary
2016-05-29 22:25:30 +01:00
parent 69f83cb905
commit ada1e624d8
4 changed files with 100 additions and 34 deletions

View File

@@ -173,17 +173,17 @@
}
selectField.change();
},
deleteItem: function(opt) {
removeItem: function(opt) {
var rules = $("#node-input-rule-container").editableList('items');
rules.each(function(i) { $(this).find(".node-input-rule-index").html(i+1); });
},
resizeItem: resizeRule,
updateOrder: function(rules) {
sortItems: function(rules) {
var rules = $("#node-input-rule-container").editableList('items');
rules.each(function(i) { $(this).find(".node-input-rule-index").html(i+1); });
},
sortable: true,
deletable: true
removable: true
});
for (var i=0;i<this.rules.length;i++) {