Permalink
Browse files

Update pages template so no unnecessary global JS variable is being i…

…ntroduced.
  • Loading branch information...
1 parent 16697d9 commit 16b268deefea5dfca2d43d4c71c0077fd66fdc3e @devfom devfom committed May 30, 2014
Showing with 3 additions and 6 deletions.
  1. +1 −2 modules/data/webadmin/tmpl/add_edit_user.tmpl
  2. +2 −4 modules/data/webadmin/tmpl/settings.tmpl
@@ -203,8 +203,7 @@
<input type="checkbox" name="loaded_by_network" id="loaded_by_net_<? VAR Name ?>" checked="checked" disabled="disabled"/>
<? IF !LoadedByAllNetworks ?>
<script type="text/javascript">
- var checkbox = document.getElementById("loaded_by_net_<? VAR Name ?>");
- checkbox.indeterminate = true;
+ document.getElementById("loaded_by_net_<? VAR Name ?>").indeterminate = true;
</script>
<? ENDIF ?>
<? ENDIF ?>
@@ -193,8 +193,7 @@
<input type="checkbox" name="loaded_by_network" id="loaded_by_net_<? VAR Name ?>" checked="checked" disabled="disabled"/>
<? IF !LoadedByAllNetworks ?>
<script type="text/javascript">
- var checkbox = document.getElementById("loaded_by_net_<? VAR Name ?>");
- checkbox.indeterminate = true;
+ document.getElementById("loaded_by_net_<? VAR Name ?>").indeterminate = true;
</script>
<? ENDIF ?>
<? ENDIF ?>
@@ -204,8 +203,7 @@
<input type="checkbox" name="loaded_by_user" id="loaded_by_user_<? VAR Name ?>" checked="checked" disabled="disabled"/>
<? IF !LoadedByAllUsers ?>
<script type="text/javascript">
- var checkbox = document.getElementById("loaded_by_user_<? VAR Name ?>");
- checkbox.indeterminate = true;
+ document.getElementById("loaded_by_user_<? VAR Name ?>").indeterminate = true;
</script>
<? ENDIF ?>
<? ENDIF ?>

0 comments on commit 16b268d

Please sign in to comment.