@fluxhub/fluxhub-lib 9.0.83 → 9.0.85

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.
@@ -7069,10 +7069,6 @@
7069
7069
  ok_op = true;
7070
7070
  }
7071
7071
  }
7072
- if (!ok_op) {
7073
- }
7074
- }, function (err) {
7075
- _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
7076
7072
  });
7077
7073
  }
7078
7074
  };
@@ -7080,15 +7076,17 @@
7080
7076
  this.myData = o;
7081
7077
  this.selval = '';
7082
7078
  this.table_hidden = false;
7083
- this.errorMsg = "";
7079
+ this.errorMsg = '';
7080
+ console.log('resetD prima --> ', this.getValue(), this.valDef);
7084
7081
  this.setByValue(this.valDef);
7085
7082
  this.is_loaded = true;
7086
- console.log('resetD --> ', this.getValue(), this.valDef);
7087
- if ((this.getValue() == null || this.getValue() == '') && this.valDef != "") {
7083
+ console.log('resetD dopo --> ', this.getValue(), this.valDef);
7084
+ if ((this.getValue() == null || this.getValue() == '') && this.valDef != '') {
7088
7085
  this.setByDescri(this.valDef);
7089
7086
  }
7090
7087
  };
7091
7088
  FHAutoCompleteComponent.prototype.setByDescri = function (desc_val) {
7089
+ console.log('>>>setByDescri<<<', desc_val);
7092
7090
  this.valDef = desc_val;
7093
7091
  this.selval = '';
7094
7092
  if (desc_val == "") {
@@ -7118,8 +7116,8 @@
7118
7116
  this.valDef = desc_val;
7119
7117
  this.selval = desc_val;
7120
7118
  if (this.myData != null) {
7119
+ var b_found = false;
7121
7120
  for (var x in this.myData) {
7122
- var b_found = false;
7123
7121
  if (this.myData[x]['valore'] == this.selval) {
7124
7122
  this.sItem = this.myData[x]['descrizione_valore'];
7125
7123
  if (this.sItem != null) {
@@ -7128,9 +7126,9 @@
7128
7126
  }
7129
7127
  return;
7130
7128
  }
7131
- if (!b_found && this.only_from_list)
7132
- this.resetValue();
7133
7129
  }
7130
+ if (!b_found && this.only_from_list)
7131
+ this.resetValue();
7134
7132
  }
7135
7133
  if (!this.only_from_list) {
7136
7134
  this.sItem = this.selval;
@@ -7184,7 +7182,7 @@
7184
7182
  }
7185
7183
  this.table_hidden = false;
7186
7184
  this.setByValue(this.valDef);
7187
- if (this.getValue() == "") {
7185
+ if (this.getValue() == '') {
7188
7186
  this.setByDescri(this.valDef);
7189
7187
  }
7190
7188
  };