filterForm: add value method
This commit is contained in:
parent
579545ea3d
commit
315e27bf1e
1 changed files with 10 additions and 8 deletions
|
@ -66,6 +66,7 @@ pandora.ui.filterForm = function(options) {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
that.getList = that.$filter.getList;
|
that.getList = that.$filter.getList;
|
||||||
|
that.value = that.$filter.value;
|
||||||
});
|
});
|
||||||
that.updateResults = function() {
|
that.updateResults = function() {
|
||||||
if (mode == 'list') {
|
if (mode == 'list') {
|
||||||
|
@ -81,14 +82,15 @@ pandora.ui.filterForm = function(options) {
|
||||||
pandora.$ui.editPanel.updatePanel();
|
pandora.$ui.editPanel.updatePanel();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
pandora.$ui.list && pandora.$ui.list.bindEventOnce({
|
pandora.$ui.list && pandora.$ui.list
|
||||||
init: function(data) {
|
.bindEventOnce({
|
||||||
pandora.$ui.folderList[
|
init: function(data) {
|
||||||
pandora.getListData().folder
|
pandora.$ui.folderList[
|
||||||
].value(list.id, 'query', that.$filter.options('value'));
|
pandora.getListData().folder
|
||||||
}
|
].value(list.id, 'query', that.$filter.options('value'));
|
||||||
})
|
}
|
||||||
.reloadList();
|
})
|
||||||
|
.reloadList();
|
||||||
pandora.$ui.filters && pandora.$ui.filters.forEach(function($filter) {
|
pandora.$ui.filters && pandora.$ui.filters.forEach(function($filter) {
|
||||||
$filter.reloadList();
|
$filter.reloadList();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue