update lists on list change
This commit is contained in:
parent
c66433c740
commit
54d6d43fab
2 changed files with 26 additions and 8 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue