mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fix for "Only show top-level items" checkbox not working correctly in saved searches
This commit is contained in:
parent
44e1fe836c
commit
f935078e40
1 changed files with 10 additions and 5 deletions
|
|
@ -46,16 +46,21 @@
|
|||
var conditions = this.search.getSearchConditions();
|
||||
for(var id in conditions)
|
||||
{
|
||||
// Checkboxes
|
||||
switch (conditions[id]['condition']) {
|
||||
case 'recursive':
|
||||
case 'noChildren':
|
||||
var checkbox = conditions[id]['condition'] + 'Checkbox';
|
||||
this.id(checkbox).setAttribute('condition',id);
|
||||
this.id(checkbox).checked = (conditions[id]['operator']=='true');
|
||||
continue;
|
||||
}
|
||||
|
||||
if(conditions[id]['condition'] == 'joinMode')
|
||||
{
|
||||
this.id('joinModeMenu').setAttribute('condition',id);
|
||||
this.id('joinModeMenu').value = conditions[id]['operator'];
|
||||
}
|
||||
else if(conditions[id]['condition'] == 'recursive')
|
||||
{
|
||||
this.id('recursiveCheckbox').setAttribute('condition',id);
|
||||
this.id('recursiveCheckbox').checked = (conditions[id]['operator']=='true');
|
||||
}
|
||||
else
|
||||
{
|
||||
this.addCondition(conditions[id]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue