diff --git a/modules/core/www/idp/logout-iframe.js b/modules/core/www/idp/logout-iframe.js index 921c23cdfebd5acbd42369e5f571f509fcd0ab74..62e7666b04d34e87c3f6b1c32c60800928a7a2fa 100644 --- a/modules/core/www/idp/logout-iframe.js +++ b/modules/core/www/idp/logout-iframe.js @@ -5,7 +5,7 @@ function updateStatus() { var nFailed = 0; var nProgress = 0; - for (sp in window.spStatus) { + for (var sp in window.spStatus) { switch (window.spStatus[sp]) { case 'failed': nFailed += 1; diff --git a/www/resources/script.js b/www/resources/script.js index a195c24cb8fa8a1180dbec33e05796be5490af42..e72584a3d7f229f44fc4ccfd26cfd8b6647c8803 100644 --- a/www/resources/script.js +++ b/www/resources/script.js @@ -5,7 +5,7 @@ */ function SimpleSAML_focus(id) { - element = document.getElementById(id); + var element = document.getElementById(id); if (element != null) { element.focus(); } @@ -19,7 +19,7 @@ function SimpleSAML_focus(id) */ function SimpleSAML_show(id) { - element = document.getElementById(id); + var element = document.getElementById(id); if (element == null) { return; } @@ -35,7 +35,7 @@ function SimpleSAML_show(id) */ function SimpleSAML_hide(id) { - element = document.getElementById(id); + var element = document.getElementById(id); if (element == null) { return; }