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,
|
var folder = pandora.getListData().folder,
|
||||||
value = $findInput.value();
|
value = $findInput.value();
|
||||||
folder && pandora.$ui.folderList[folder].options({selected: []});
|
folder && pandora.$ui.folderList[folder].options({selected: []});
|
||||||
if (pandora.user.ui.section == 'documents') {
|
|
||||||
pandora.$ui.findSelect.value('*');
|
|
||||||
pandora.$ui.findInput.value(value);
|
|
||||||
}
|
|
||||||
that.fadeOutScreen();
|
that.fadeOutScreen();
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
page: '',
|
page: '',
|
||||||
findDocuments: {
|
find: {
|
||||||
conditions: value === ''
|
conditions: value === ''
|
||||||
? []
|
? []
|
||||||
: [{key: '*', value: value, operator: '='}],
|
: [{key: '*', value: value, operator: '='}],
|
||||||
|
@ -97,6 +93,8 @@ pandora.ui.home = function() {
|
||||||
},
|
},
|
||||||
section: 'documents'
|
section: 'documents'
|
||||||
});
|
});
|
||||||
|
pandora.$ui.findSelect && pandora.$ui.findSelect.value('*');
|
||||||
|
pandora.$ui.findInput && pandora.$ui.findInput.value(value);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.appendTo(that),
|
.appendTo(that),
|
||||||
|
|
Loading…
Add table
Reference in a new issue