@esfaenza/admin-module 11.2.40 → 11.2.41

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.
@@ -1903,7 +1903,7 @@
1903
1903
  //Altirmenti genero il modello nuovo normalmente
1904
1904
  if (HotPotato) {
1905
1905
  this.searchView = HotPotato;
1906
- this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData, this.searchView);
1906
+ this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData);
1907
1907
  }
1908
1908
  else {
1909
1909
  this.searchView = new DynamicViewsView();
@@ -1916,15 +1916,13 @@
1916
1916
  if (resetPage)
1917
1917
  this.searchView.page = 1;
1918
1918
  this.searchView.filtername = this.filterName;
1919
- this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData, this.searchView);
1919
+ this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData);
1920
1920
  };
1921
- AdmDynamicViewsComponent.prototype.POSTGetItems = function (url, data) {
1921
+ AdmDynamicViewsComponent.prototype.POSTGetItems = function (url) {
1922
1922
  var _this = this;
1923
1923
  if (!this.searchView.filtername) {
1924
1924
  this.badSearch = true;
1925
- esTable.AppSearch.reset(this.searchView);
1926
- //Aggiorno il riferimento per refreshare la es-table
1927
- this.searchView = JSON.parse(JSON.stringify(this.searchView));
1925
+ this.searchView = null;
1928
1926
  return;
1929
1927
  }
1930
1928
  else
@@ -1934,7 +1932,9 @@
1934
1932
  this.currentName = this.searchView.filtername;
1935
1933
  this.searchView = null;
1936
1934
  }
1937
- this.http.post(url, data).subscribe(function (t) {
1935
+ this.searchView = new DynamicViewsView();
1936
+ this.searchView.filtername = this.currentName;
1937
+ this.http.post(url, this.searchView).subscribe(function (t) {
1938
1938
  _this.searchView = t;
1939
1939
  _this.searchView.searchinprogress = false;
1940
1940
  _this.localStorage.setItem("HotDinamitato", _this.searchView).subscribe();