@fluxhub/fluxhub-lib 10.0.634 → 10.0.636

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.
@@ -2339,10 +2339,13 @@
2339
2339
  this.value_list_sel = new Array();
2340
2340
  this.types = [];
2341
2341
  this.values = [];
2342
+ this.value_list_all = [];
2342
2343
  this.value_sel = [];
2343
2344
  if (data != null) {
2344
- if (data.value_list != null)
2345
+ if (data.value_list != null) {
2345
2346
  this.value_list = data.value_list;
2347
+ this.value_list_all = JSON.parse(JSON.stringify(data.value_list));
2348
+ }
2346
2349
  if (data.single_sel != null)
2347
2350
  this.single_sel = data.single_sel;
2348
2351
  if (data.vis_buttons != null)
@@ -2358,15 +2361,18 @@
2358
2361
  fh_win_picklist.prototype.add_all = function () {
2359
2362
  for (var index = 0; index < this.value_list_sel.length; index++) {
2360
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);
2368
+ }
2361
2369
  }
2362
- this.value_list = [];
2370
+ // this.value_list=[];
2363
2371
  this.selectedAdd = null;
2364
2372
  this.filtra();
2365
2373
  };
2366
2374
  fh_win_picklist.prototype.rem_all = function () {
2367
- for (var index = 0; index < this.value_sel.length; index++) {
2368
- this.value_list.push(this.value_sel[index]);
2369
- }
2375
+ this.value_list = JSON.parse(JSON.stringify(this.value_list_all));
2370
2376
  this.value_sel = [];
2371
2377
  this.selectedAdd = null;
2372
2378
  this.filtra();