Related to issue 40069: Fixing ESLint errors
authorJavier Armendáriz <javier.armendariz@openbravo.com>
Fri, 31 May 2019 11:43:28 +0200
changeset 36124 faae3d418dcf
parent 36123 9dcdf8f36e2b
child 36125 c1a629579027
Related to issue 40069: Fixing ESLint errors
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/upload/ob-upload-popup.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js	Wed May 29 17:11:21 2019 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js	Fri May 31 11:43:28 2019 +0200
@@ -215,7 +215,7 @@
 
     if (newWindow) {
       // Split path into protocol, server, port part and the rest (pathname, query, etc)
-      parsePathPart = /^((?:[A-Za-z]+:)?\/\/[^\/]+)?(\/.*)$/;
+      parsePathPart = /^((?:[A-Za-z]+:)?\/\/[^/]+)?(\/.*)$/;
       parts = parsePathPart.exec(newWindow);
       if (parts && parts[2]) {
         newWindow = parts[2];
@@ -347,4 +347,4 @@
       this.enable();
     }
   }
-});
\ No newline at end of file
+});
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/upload/ob-upload-popup.js	Wed May 29 17:11:21 2019 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/upload/ob-upload-popup.js	Fri May 31 11:43:28 2019 +0200
@@ -290,7 +290,7 @@
     },
 
     updateState: function () {
-      var ownerId, tabId = this.view.tabId;
+      var ownerId;
       if (this.inChildTab) {
         ownerId = this.view.parentRecordId;
         if (ownerId && ownerId !== '-1') {
@@ -341,4 +341,4 @@
       OB.Utilities.postThroughHiddenForm(this.actionUrl, params);
     }
   }
-});
\ No newline at end of file
+});
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js	Wed May 29 17:11:21 2019 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js	Fri May 31 11:43:28 2019 +0200
@@ -1137,7 +1137,7 @@
       seed = (new Date()).getTime();
     }
     seed = seed.toString();
-    seed = seed.replace(/[&\/\\#,+()$~%.'":*?<>{}]/g, '0');
+    seed = seed.replace(/[&/\\#,+()$~%.'":*?<>{}]/g, '0');
     seed = seed.replace(/[a-j]/g, '1').replace(/[j-t]/g, '2').replace(/[u-z]/g, '3');
     seed = seed.replace(/[A-J]/g, '4').replace(/[J-T]/g, '4').replace(/[U-Z]/g, '6');
     seed = seed + seed.length.toString();
@@ -1303,4 +1303,4 @@
     value = value.replace(/ñ/g, 'n').replace(/Ñ/g, 'N');
   }
   return value;
-};
\ No newline at end of file
+};
--- a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js	Wed May 29 17:11:21 2019 +0200
+++ b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js	Fri May 31 11:43:28 2019 +0200
@@ -821,7 +821,7 @@
       } else if (param === 'focus') {
         this._selector.focus();
       } else if (param === 'blur') {
-        var doNothing = 0; // prevent empty block
+        // prevent empty block
       } else {
         return true;
       }
@@ -1028,4 +1028,4 @@
       }
     }, 10);
   }
-});
\ No newline at end of file
+});