fix Done button of List dialog if dialog was opened while viewing an item

This commit is contained in:
j 2014-01-22 09:33:46 +00:00
parent f3f47494f3
commit 7cffc4dd69

View file

@ -65,16 +65,15 @@ pandora.ui.filterForm = function(list) {
that.updateResults = function() {
if (list) {
Ox.Request.clearCache(list.id);
pandora.$ui.list
.bindEventOnce({
init: function(data) {
pandora.$ui.folderList[
pandora.getListData().folder
].value(list.id, 'query', that.$filter.options('query'));
}
})
.reloadList();
pandora.$ui.filters.forEach(function($filter) {
pandora.$ui.list && pandora.$ui.list.bindEventOnce({
init: function(data) {
pandora.$ui.folderList[
pandora.getListData().folder
].value(list.id, 'query', that.$filter.options('query'));
}
})
.reloadList();
pandora.$ui.filters && pandora.$ui.filters.forEach(function($filter) {
$filter.reloadList();
});
} else {