Browse Source

HPCC-24795 ECL Watch open in new window URL issue

Rollback change from:  https://github.com/hpcc-systems/HPCC-Platform/commit/f468a00181569c6ef2d5a35e67702d289251f859

Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
Gordon Smith 4 years ago
parent
commit
193e9628d3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      esp/src/eclwatch/_Widget.js

+ 4 - 4
esp/src/eclwatch/_Widget.js

@@ -130,13 +130,13 @@ define([
             return retVal;
         },
 
-        getURL: function (filterFromComponent) {
+        getURL: function () {
             var baseUrl = document.URL.split("#")[0];
             var baseUrlParts = baseUrl.split("?");
             baseUrl = baseUrlParts[0];
             var args = baseUrlParts[1];
             delete this.params.__filter;
-            var filterParams = filterFromComponent ? filterFromComponent : this.getFilterParams();
+            var filterParams = this.getFilterParams();
             if (filterParams) {
                 this.params.__filter = ioQuery.objectToQuery(filterParams);
             }
@@ -144,8 +144,8 @@ define([
             return baseUrl + "?" + paramsString;
         },
 
-        _onNewPage: function (filterFromComponent) {
-            var win = window.open(this.getURL(filterFromComponent), "_blank");
+        _onNewPage: function (event) {
+            var win = window.open(this.getURL(), "_blank");
             if (win) {
                 win.focus();
             }