fix find on home

This commit is contained in:
j 2019-12-01 17:39:33 +01:00
parent 502f7490ac
commit 70bcc962a9

View file

@ -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),