filterForm: query -> value

This commit is contained in:
rolux 2014-02-17 08:13:01 +00:00
parent f67f9955df
commit 579545ea3d

View file

@ -73,10 +73,10 @@ pandora.ui.filterForm = function(options) {
if (pandora.user.ui.section == 'edits') { if (pandora.user.ui.section == 'edits') {
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('value'));
pandora.api.editEdit({ pandora.api.editEdit({
id: list.id, id: list.id,
query: that.$filter.options('query') query: that.$filter.options('value')
}, function(result) { }, function(result) {
pandora.$ui.editPanel.updatePanel(); pandora.$ui.editPanel.updatePanel();
}); });
@ -85,7 +85,7 @@ pandora.ui.filterForm = function(options) {
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('value'));
} }
}) })
.reloadList(); .reloadList();
@ -94,7 +94,7 @@ pandora.ui.filterForm = function(options) {
}); });
} }
} else { } else {
pandora.UI.set({find: Ox.clone(that.$filter.options('query'), true)}); pandora.UI.set({find: Ox.clone(that.$filter.options('value'), true)});
pandora.$ui.findElement.updateElement(); pandora.$ui.findElement.updateElement();
} }
}; };