@fluxhub/fluxhub-lib 10.0.707 → 10.0.709

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.
@@ -23008,6 +23008,8 @@
23008
23008
  };
23009
23009
  dati_aggiuntivi_v2.prototype.salva = function () {
23010
23010
  var _this = this;
23011
+ if (!this.can_save())
23012
+ return;
23011
23013
  if (this.save_alreadypressed)
23012
23014
  return;
23013
23015
  this.save_alreadypressed = true;
@@ -23807,12 +23809,16 @@
23807
23809
  });
23808
23810
  };
23809
23811
  dati_aggiuntivi_v2.prototype.respingi = function () {
23812
+ if (!this.can_save())
23813
+ return;
23810
23814
  this.oper = "respingi";
23811
23815
  this.btnprocedi = true;
23812
23816
  this.update_status(false, false, null, null, 8);
23813
23817
  this.salva();
23814
23818
  };
23815
23819
  dati_aggiuntivi_v2.prototype.procedi = function () {
23820
+ if (!this.can_save())
23821
+ return;
23816
23822
  this.oper = "procedi";
23817
23823
  this.btnprocedi = true;
23818
23824
  this.update_status(false, false, null, null, 9);
@@ -24601,6 +24607,7 @@
24601
24607
  };
24602
24608
  dati_aggiuntivi_v2.prototype.after_save = function () { };
24603
24609
  dati_aggiuntivi_v2.prototype.before_save = function () { };
24610
+ dati_aggiuntivi_v2.prototype.can_save = function () { return true; };
24604
24611
  dati_aggiuntivi_v2.prototype.edit_doc = function () {
24605
24612
  this.load_document();
24606
24613
  };