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

This commit is contained in:
Jessica Wang 2012-01-05 14:15:33 -08:00
parent e234d101a2
commit a1bdea5404
1 changed files with 4 additions and 2 deletions

View File

@ -479,7 +479,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;
}
}
@ -1185,7 +1186,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;
}
}