Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ntroduced.
  • Loading branch information...
commit 16b268deefea5dfca2d43d4c71c0077fd66fdc3e 1 parent 16697d9
@devfom devfom authored
View
3  modules/data/webadmin/tmpl/add_edit_user.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 ?>
View
6 modules/data/webadmin/tmpl/settings.tmpl
@@ -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 ?>
Please sign in to comment.
Something went wrong with that request. Please try again.