浏览代码

[oozie] Fix table info when filtered page on Workflow dashboard has zero jobs

krish 10 年之前
父节点
当前提交
e6638a119f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      apps/oozie/src/oozie/templates/dashboard/list_oozie_workflows.mako

+ 3 - 3
apps/oozie/src/oozie/templates/dashboard/list_oozie_workflows.mako

@@ -224,14 +224,14 @@ ${ layout.menubar(section='workflows', dashboard=True) }
       var _disp = oSettings.fnRecordsDisplay();
       var _tot = oSettings.fnRecordsTotal();
       var _text = "";
-      if (_tot == 0) {
+      if (_disp == 0) {
         _text = '${_("Showing 0 to 0 of ")}' + totalJobs + '${_(" entries")}';
       }
       else {
         _text = ' ${_("Showing ")}' + tableOffset + '${_(" to ")}' + (tableOffset + oSettings.fnDisplayEnd() - 1) + '${_(" of ")}' + totalJobs;
-        if (_disp != _tot) { // when filter button is selected
+      }
+      if (_disp != _tot) { // when filter button is selected
           _text += '${_(" (filtered from ")}' + _tot + '${_(" entries)")}';
-        }
       }
       $(table).text(_text);
     }