ソースを参照

fix codacy

version-14
Faris Ansari 8年前
コミット
06a9b2de5b
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      frappe/public/js/frappe/views/reports/query_report.js

+ 2
- 2
frappe/public/js/frappe/views/reports/query_report.js ファイルの表示

@@ -594,7 +594,7 @@ frappe.views.QueryReport = Class.extend({


var me = this; var me = this;
this.dataView.onRowCountChanged.subscribe(function (e, args) { this.dataView.onRowCountChanged.subscribe(function (e, args) {
me.update_totals_row(e, args);
me.update_totals_row();
me.grid.updateRowCount(); me.grid.updateRowCount();
me.grid.render(); me.grid.render();
}); });
@@ -604,7 +604,7 @@ frappe.views.QueryReport = Class.extend({
me.grid.render(); me.grid.render();
}); });
}, },
update_totals_row: function(e, args) {
update_totals_row: function() {
if(!this.report_doc.add_total_row) return; if(!this.report_doc.add_total_row) return;


const data_length = this.dataView.getLength(); const data_length = this.dataView.getLength();


読み込み中…
キャンセル
保存