update lists on list change

This commit is contained in:
j 2016-01-13 21:46:31 +05:30
commit 54d6d43fab
2 changed files with 26 additions and 8 deletions

View file

@ -343,10 +343,28 @@ oml.ui.folders = function() {
that.updateItems();
}
},
addlist: function(data) {
var index = Ox.getIndexById(ui._users, data.user);
if (index > -1) {
that.updateUser(index);
}
},
change: function(data) {
Ox.print('got change event')
Ox.Request.clearCache();
},
editlist: function(data) {
var index = Ox.getIndexById(ui._users, data.user);
if (index > -1) {
that.updateUser(index);
}
},
orderlists: function(data) {
var index = Ox.getIndexById(ui._users, data.user);
if (index > -1) {
that.updateUser(index);
}
},
peering: function(data, event) {
Ox.Request.clearCache('getUsers');
if (Ox.contains(['peering.accept', 'peering.remove'], event)) {