@fluxhub/fluxhub-lib 1.0.483 → 1.0.485

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.
@@ -7081,6 +7081,7 @@
7081
7081
  localStorage.removeItem(this.grid_key + '_SORT');
7082
7082
  localStorage.removeItem(this.grid_key + '_FILTER');
7083
7083
  localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
7084
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
7084
7085
  if (this.gf.getObj().COL != null)
7085
7086
  if (this.gf.getObj().COL != '')
7086
7087
  localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
@@ -7422,6 +7423,8 @@
7422
7423
  function () {
7423
7424
  if (this.end_point == null)
7424
7425
  this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
7426
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7427
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7425
7428
  this.onResize();
7426
7429
  };
7427
7430
  /**
@@ -7628,6 +7631,7 @@
7628
7631
  if (this.ric_libera != '')
7629
7632
  this.doFill('', true, false);
7630
7633
  this.ric_libera = '';
7634
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
7631
7635
  }
7632
7636
  this.fix_flt_temp = '';
7633
7637
  this.gridOptions.api.setFilterModel(null);
@@ -7867,13 +7871,12 @@
7867
7871
  catch (eer) {
7868
7872
  console.log(eer);
7869
7873
  }
7870
- console.log('localStorage.getItem(this.grid_key + \'_FILTER\') ', localStorage.getItem(this.grid_key + '_FILTER'));
7871
7874
  if (localStorage.getItem(this.grid_key + '_FILTER') != null && (b_mantieni_ck || forza))
7872
7875
  if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
7873
- console.log(localStorage.getItem(this.grid_key + '_FILTER'));
7874
- console.log('setto _FILTER: ' + localStorage.getItem(this.grid_key + '_FILTER'));
7875
7876
  try {
7876
7877
  this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER')));
7878
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
7879
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
7877
7880
  }
7878
7881
  catch (eer) {
7879
7882
  console.log(eer);
@@ -8048,6 +8051,7 @@
8048
8051
  * @return {?}
8049
8052
  */
8050
8053
  function (event) {
8054
+ localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera);
8051
8055
  if (event.keyCode == 13) {
8052
8056
  this.free_search();
8053
8057
  }