ソースを参照

HPCC-14615 ECL workunit list refreshing

When a user is not on the first page of results in the dgrid component the watcher function is refreshing the page which in turn takes them back to page one.

Signed-off by: Miguel Vazquez miguel.vazquez@lexisnexis.com
Miguel Vazquez 9 年 前
コミット
2304daa242
1 ファイル変更7 行追加1 行削除
  1. 7 1
      esp/src/eclwatch/WUQueryWidget.js

+ 7 - 1
esp/src/eclwatch/WUQueryWidget.js

@@ -24,6 +24,7 @@ define([
     "dojo/date",
     "dojo/on",
     "dojo/topic",
+    "dojo/aspect",
 
     "dijit/registry",
     "dijit/Menu",
@@ -56,7 +57,7 @@ define([
     "dijit/ToolbarSeparator",
     "dijit/TooltipDialog"
 
-], function (declare, lang, i18n, nlsHPCC, arrayUtil, dom, domForm, date, on, topic,
+], function (declare, lang, i18n, nlsHPCC, arrayUtil, dom, domForm, date, on, topic, aspect,
                 registry, Menu, MenuItem, MenuSeparator, PopupMenuItem,
                 selector,
                 _TabContainerWidget, WsWorkunits, ESPUtil, ESPWorkunit, DelayLoadWidget, TargetSelectWidget, FilterDropDownWidget,
@@ -456,6 +457,11 @@ define([
             this.workunitsGrid.onSelectionChanged(function (event) {
                 context.refreshActionState();
             });
+            aspect.after(this.workunitsGrid, 'gotoPage', function (deferred, args) {
+                return deferred.then(function () {
+                    args[0] > 1 ? context._idleWatcher.stop() : context._idleWatcher.start()
+                });
+            });
             this.workunitsGrid.startup();
         },