From 2bb4fc20dd191791f43170522f125fd3c8fae198 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sep 28 2018 08:30:22 +0000 Subject: Fix javascript 'errors' found by jslint There are several JavaScript errors, which have come with PRs: 2362, 2371, 2372. JavaScript code have to follow jsl requires. Fixes: https://pagure.io/freeipa/issue/7717 Fixes: https://pagure.io/freeipa/issue/7718 Reviewed-By: Christian Heimes Reviewed-By: Christian Heimes --- diff --git a/install/html/ssbrowser.html b/install/html/ssbrowser.html index 6201d88..faa7e65 100644 --- a/install/html/ssbrowser.html +++ b/install/html/ssbrowser.html @@ -26,7 +26,7 @@ }; (function() { var icons = [ - '../ui/favicon.ico', + '../ui/favicon.ico' ]; var styles = [ '../ui/css/patternfly.css', @@ -35,17 +35,17 @@ var scripts = [ '../ui/js/libs/jquery.js', '../ui/js/libs/jquery.ordered-map.js', - '../ui/js/dojo/dojo.js', + '../ui/js/dojo/dojo.js' ]; ipa_loader.scripts(scripts, function() { require([ 'dojo/dom', 'freeipa/core', - 'dojo/domReady!', + 'dojo/domReady!' ], function(dom) { var text = require('freeipa/text'); - msg = "".concat( + var msg = "".concat( text.get('@i18n:ssbrowser-page.header'), text.get('@i18n:ssbrowser-page.firefox-header'), text.get('@i18n:ssbrowser-page.firefox-actions'), @@ -53,8 +53,8 @@ text.get('@i18n:ssbrowser-page.chrome-certificate'), text.get('@i18n:ssbrowser-page.chrome-spnego'), text.get('@i18n:ssbrowser-page.ie-header'), - text.get('@i18n:ssbrowser-page.ie-actions'), - ) + text.get('@i18n:ssbrowser-page.ie-actions') + ); dom.byId('ssbrowser-msg').innerHTML=msg; }); }); diff --git a/install/html/unauthorized.html b/install/html/unauthorized.html index b5c22ae..630982d 100644 --- a/install/html/unauthorized.html +++ b/install/html/unauthorized.html @@ -26,7 +26,7 @@ }; (function() { var icons = [ - '../ui/favicon.ico', + '../ui/favicon.ico' ]; var styles = [ '../ui/css/patternfly.css', @@ -35,18 +35,19 @@ var scripts = [ '../ui/js/libs/jquery.js', '../ui/js/libs/jquery.ordered-map.js', - '../ui/js/dojo/dojo.js', + '../ui/js/dojo/dojo.js' ]; ipa_loader.scripts(scripts, function() { require([ 'dojo/dom', 'freeipa/core', - 'dojo/domReady!', + 'dojo/domReady!' ], function(dom) { var text = require('freeipa/text'); - if (msg = text.get('@i18n:unauthorized-page')) { + var msg = text.get('@i18n:unauthorized-page'); + if (msg) { dom.byId('unauthorized-msg').innerHTML=msg; } }); diff --git a/install/migration/index.html b/install/migration/index.html index 7cdd6e3..fca517c 100644 --- a/install/migration/index.html +++ b/install/migration/index.html @@ -10,7 +10,7 @@ - +