@fluxhub/fluxhub-lib 10.0.636 → 10.0.637

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2361,12 +2361,20 @@
2361
2361
  fh_win_picklist.prototype.add_all = function () {
2362
2362
  for (var index = 0; index < this.value_list_sel.length; index++) {
2363
2363
  this.value_sel.push(this.value_list_sel[index]);
2364
- var indexx = this.value_list.indexOf(this.value_list_sel[index], 0);
2365
- console.log('indexx ', indexx);
2366
- if (indexx > -1) {
2367
- this.value_list.splice(index, 1);
2364
+ }
2365
+ var rest = [];
2366
+ for (var index = 0; index < this.value_list_all.length; index++) {
2367
+ var b_found = false;
2368
+ for (var index1 = 0; index1 < this.value_sel.length; index1++)
2369
+ if (this.value_sel[index1].valore == this.value_list_all[index].valore) {
2370
+ b_found = true;
2371
+ break;
2372
+ }
2373
+ if (!b_found) {
2374
+ rest.push(this.value_list_all[index]);
2368
2375
  }
2369
2376
  }
2377
+ this.value_list = JSON.parse(JSON.stringify(rest));
2370
2378
  // this.value_list=[];
2371
2379
  this.selectedAdd = null;
2372
2380
  this.filtra();