forked from 0x2620/pandora
fix Done button of List dialog if dialog was opened while viewing an item
This commit is contained in:
parent
f3f47494f3
commit
7cffc4dd69
1 changed files with 9 additions and 10 deletions
|
@ -65,16 +65,15 @@ pandora.ui.filterForm = function(list) {
|
||||||
that.updateResults = function() {
|
that.updateResults = function() {
|
||||||
if (list) {
|
if (list) {
|
||||||
Ox.Request.clearCache(list.id);
|
Ox.Request.clearCache(list.id);
|
||||||
pandora.$ui.list
|
pandora.$ui.list && pandora.$ui.list.bindEventOnce({
|
||||||
.bindEventOnce({
|
init: function(data) {
|
||||||
init: function(data) {
|
pandora.$ui.folderList[
|
||||||
pandora.$ui.folderList[
|
pandora.getListData().folder
|
||||||
pandora.getListData().folder
|
].value(list.id, 'query', that.$filter.options('query'));
|
||||||
].value(list.id, 'query', that.$filter.options('query'));
|
}
|
||||||
}
|
})
|
||||||
})
|
.reloadList();
|
||||||
.reloadList();
|
pandora.$ui.filters && pandora.$ui.filters.forEach(function($filter) {
|
||||||
pandora.$ui.filters.forEach(function($filter) {
|
|
||||||
$filter.reloadList();
|
$filter.reloadList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue