Skip to content
Snippets Groups Projects
Commit fc57298d authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

code quality

parent 1b8f1343
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ function updateStatus() ...@@ -5,7 +5,7 @@ function updateStatus()
{ {
var nFailed = 0; var nFailed = 0;
var nProgress = 0; var nProgress = 0;
for (sp in window.spStatus) { for (var sp in window.spStatus) {
switch (window.spStatus[sp]) { switch (window.spStatus[sp]) {
case 'failed': case 'failed':
nFailed += 1; nFailed += 1;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
*/ */
function SimpleSAML_focus(id) function SimpleSAML_focus(id)
{ {
element = document.getElementById(id); var element = document.getElementById(id);
if (element != null) { if (element != null) {
element.focus(); element.focus();
} }
...@@ -19,7 +19,7 @@ function SimpleSAML_focus(id) ...@@ -19,7 +19,7 @@ function SimpleSAML_focus(id)
*/ */
function SimpleSAML_show(id) function SimpleSAML_show(id)
{ {
element = document.getElementById(id); var element = document.getElementById(id);
if (element == null) { if (element == null) {
return; return;
} }
...@@ -35,7 +35,7 @@ function SimpleSAML_show(id) ...@@ -35,7 +35,7 @@ function SimpleSAML_show(id)
*/ */
function SimpleSAML_hide(id) function SimpleSAML_hide(id)
{ {
element = document.getElementById(id); var element = document.getElementById(id);
if (element == null) { if (element == null) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment