fix bugs related to list selection after deleting items
This commit is contained in:
parent
c3fb0b9b87
commit
826e61a2eb
2 changed files with 5 additions and 2 deletions
|
@ -408,7 +408,7 @@ pandora.ui.list = function() {
|
||||||
list: pandora.user.ui._list,
|
list: pandora.user.ui._list,
|
||||||
items: data.ids
|
items: data.ids
|
||||||
}, function() {
|
}, function() {
|
||||||
that.options({selected: []});
|
pandora.UI.set({listSelection: []});
|
||||||
pandora.reloadList();
|
pandora.reloadList();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -533,6 +533,9 @@ pandora.ui.list = function() {
|
||||||
pandora.$ui.selected.html(pandora.ui.status('selected', result.data));
|
pandora.$ui.selected.html(pandora.ui.status('selected', result.data));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
pandora_listselection: function(data) {
|
||||||
|
that.options({selected: data.value});
|
||||||
|
},
|
||||||
pandora_listsort: function(data) {
|
pandora_listsort: function(data) {
|
||||||
that.options({sort: data.value});
|
that.options({sort: data.value});
|
||||||
}
|
}
|
||||||
|
|
|
@ -721,7 +721,7 @@ pandora.reloadList = function() {
|
||||||
load: function(data) {
|
load: function(data) {
|
||||||
pandora.$ui.list.gainFocus();
|
pandora.$ui.list.gainFocus();
|
||||||
// fixme: what is this?
|
// fixme: what is this?
|
||||||
if (data) pandora.$ui.list.options({selected: [data.items]});
|
// if (data) pandora.$ui.list.options({selected: [data.items]});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.reloadList();
|
.reloadList();
|
||||||
|
|
Loading…
Reference in a new issue