search in categories and children

This commit is contained in:
barisusakli
2015-02-05 14:55:36 -05:00
parent f7ccdc3668
commit def600e927
7 changed files with 154 additions and 47 deletions

View File

@@ -256,7 +256,14 @@
value = options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]));
if (key) {
hash[key] = value;
if (!hash[key]) {
hash[key] = value;
} else {
if (!$.isArray(hash[key])) {
hash[key] = [hash[key]];
}
hash[key].push(value);
}
}
});
return hash;