@fluxhub/fluxhub-lib 10.0.636 → 10.0.638

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();
@@ -19910,6 +19918,7 @@
19910
19918
  break;
19911
19919
  }
19912
19920
  }
19921
+ console.log('this.clevel1 ', this.clevel);
19913
19922
  if (this.clevel == null)
19914
19923
  for (var i = 0; i < this.livs.length; i++) {
19915
19924
  if (this.livs[i].livello == liv) {
@@ -19926,7 +19935,9 @@
19926
19935
  }
19927
19936
  }
19928
19937
  }
19938
+ console.log('this.clevel2 ', this.clevel);
19929
19939
  }
19940
+ console.log('this.clevel3 ', this.clevel);
19930
19941
  this.clevel = this.check_n_levels(this.clevel);
19931
19942
  if (this.clevel == null || this.clevel == "") {
19932
19943
  this.alert("Errore di configurazione pratica contattare ufficio IT [0x002]", 1);