mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Accept singular or plural ('item'/'items' or 'folder'/'folders') for type parameter in getTreeRows()
This commit is contained in:
parent
e5b25a966b
commit
6918757b8b
1 changed files with 2 additions and 0 deletions
|
|
@ -921,9 +921,11 @@ Scholar.Items = new function(){
|
|||
|
||||
switch (type){
|
||||
case 'folder':
|
||||
case 'folders':
|
||||
sql += ' AND isFolder=1';
|
||||
break;
|
||||
case 'item':
|
||||
case 'items':
|
||||
sql += ' AND isFolder=0';
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue