We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35e96f commit 1c02c5aCopy full SHA for 1c02c5a
resources/views/scripts.blade.php
@@ -194,7 +194,7 @@
194
this.filter.value = value;
195
} else {
196
if (! this.inArray(this.filter[key], value)) {
197
- this.filter[key].push(value);
+ this.pushFilter(key, value);
198
}
199
200
},
@@ -283,6 +283,12 @@
283
return this.highlight(value, /(@.*)$/gi, '$&');
284
285
286
+ pushFilter(key, value) {
287
+ this.isEmptyValue(this.filter[key])
288
+ ? this.filter[key] = [value]
289
+ : this.filter[key].push(value);
290
+ },
291
+
292
trans(key) {
293
return trans[key];
294
0 commit comments