Commit cbe324f1 authored by Sven Franck's avatar Sven Franck

added cases as-is and firstCap to querystring cases

parent 74f366a7
......@@ -681,9 +681,15 @@ define([
// > with different cases (currently upper/lower case),
// > on full select_list (passed elements or default),
// > without a query object, if empty string is passed (nothing to parse, faster search)
// > TODO: optionable?
if (spec.query) {
if (spec.query_string !== "") {
cases.push(spec.query_string.toUpperCase(), spec.query_string.toLowerCase());
cases.push(
spec.query_string,
spec.query_string.toUpperCase(),
spec.query_string.toLowerCase(),
spec.query_string.charAt(0).toUpperCase() + spec.query_string.slice(1)
);
for (j = 0; j < cases.length; j += 1) {
for (i = 0; i < spec.options.select_list.length; i += 1) {
item = spec.options.select_list[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment