fix find on home
This commit is contained in:
parent
502f7490ac
commit
70bcc962a9
1 changed files with 3 additions and 5 deletions
|
@ -82,14 +82,10 @@ pandora.ui.home = function() {
|
|||
var folder = pandora.getListData().folder,
|
||||
value = $findInput.value();
|
||||
folder && pandora.$ui.folderList[folder].options({selected: []});
|
||||
if (pandora.user.ui.section == 'documents') {
|
||||
pandora.$ui.findSelect.value('*');
|
||||
pandora.$ui.findInput.value(value);
|
||||
}
|
||||
that.fadeOutScreen();
|
||||
pandora.UI.set({
|
||||
page: '',
|
||||
findDocuments: {
|
||||
find: {
|
||||
conditions: value === ''
|
||||
? []
|
||||
: [{key: '*', value: value, operator: '='}],
|
||||
|
@ -97,6 +93,8 @@ pandora.ui.home = function() {
|
|||
},
|
||||
section: 'documents'
|
||||
});
|
||||
pandora.$ui.findSelect && pandora.$ui.findSelect.value('*');
|
||||
pandora.$ui.findInput && pandora.$ui.findInput.value(value);
|
||||
}
|
||||
})
|
||||
.appendTo(that),
|
||||
|
|
Loading…
Reference in a new issue