if (filter && filter.indexOf(":") != -1) {
filter.split(",").forEach(
function(chunk) {
- var [key, value] = chunk.split(":");
- finished_filter[key] = value;
+ var kvlist = chunk.split(":");
+ finished_filter[kvlist[0]] = kvlist[1];
}
);
}
var so = {};
for (var id in this.widgets) {
- var [hint, attr] = this._selector(id).getValue().split(":");
+ var kvlist = this._selector(id).getValue().split(":");
+ var hint = kvlist[0];
+ var attr = kvlist[1];
if (!(hint && attr)) continue;
var match_how =
this.autogen_if_appropriate = function(textbox, item_id) {
if (this._user_wants_autogen() && textbox.value) {
- var [list, question] = this._get_autogen_potentials(item_id);
+ var kvlist = this._get_autogen_potentials(item_id);
+ var list = kvlist[0];
+ var question = kvlist[1];
if (list.length) {
if (question && !confirm(S("autogen_barcodes.questionable")))
return;