cloudstack 3.0 new UI - instance page - search - do not pass keyword parameter to API if its value is empty.

This commit is contained in:
Jessica Wang 2012-01-05 13:52:04 -08:00
parent e1cf8e4933
commit bb04f6feeb
1 changed files with 2 additions and 1 deletions

View File

@ -730,7 +730,8 @@
if(args.filterBy.search != null && args.filterBy.search.by != null && args.filterBy.search.value != null) {
switch(args.filterBy.search.by) {
case "name":
array1.push("&keyword=" + args.filterBy.search.value);
if(args.filterBy.search.value.length > 0)
array1.push("&keyword=" + args.filterBy.search.value);
break;
}
}