Accept singular or plural ('item'/'items' or 'folder'/'folders') for type parameter in getTreeRows()

This commit is contained in:
Dan Stillman 2006-05-23 21:39:23 +00:00
parent e5b25a966b
commit 6918757b8b

View file

@ -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;
}