diff --git a/debian/changelog b/debian/changelog index a5985820..c6baf873 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.340-deb8) stable; urgency=low +hedera-web (1.342-deb8) stable; urgency=low * Initial Release. diff --git a/web/js/db/calc-sum.js b/web/js/db/calc-sum.js index 74bbebad..e8cd677e 100644 --- a/web/js/db/calc-sum.js +++ b/web/js/db/calc-sum.js @@ -26,10 +26,7 @@ Db.CalcSum = new Class var value = this.getRowValue (row) if (value !== null) - { - this.sum -= value; - this.numbersCount--; - } + this._sum -= value; } ,after: function (row) @@ -37,23 +34,16 @@ Db.CalcSum = new Class var value = this.getRowValue (row); if (value !== null) - { - this.sum += value; - this.numbersCount++; - } + this._sum += value; } ,init: function () { - this.sum = 0; - this.numbersCount = 0; + this._sum = 0; } ,done: function () { - if (this.numbersCount > 0) - this.value = this.sum; - else - this.value = null; + this.value = this._sum; } }); diff --git a/web/js/htk/widget.js b/web/js/htk/widget.js index a94072a5..11b62b52 100644 --- a/web/js/htk/widget.js +++ b/web/js/htk/widget.js @@ -50,9 +50,9 @@ Htk.Widget = new Class return this.node; } - ,_createNode () {} + ,_createNode: function () {} - ,_refreshClass () + ,_refreshClass: function () { if (this.node && this._cssClass) this.node.className = this._cssClass +' '+ this.node.className;