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…
Reference in a new issue