aboutsummaryrefslogtreecommitdiffstats
path: root/view/acl_selector.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/acl_selector.tpl')
-rw-r--r--view/acl_selector.tpl12
1 files changed, 7 insertions, 5 deletions
diff --git a/view/acl_selector.tpl b/view/acl_selector.tpl
index 3379f5764..3f8a9e7d2 100644
--- a/view/acl_selector.tpl
+++ b/view/acl_selector.tpl
@@ -15,10 +15,12 @@
</div>
<script>
-$(function(){
- acl = new ACL(
- baseurl+"/acl",
- [$allowcid,$allowgid,$denycid,$denygid]
- );
+$(document).ready(function() {
+ if(typeof acl=="undefined"){
+ acl = new ACL(
+ baseurl+"/acl",
+ [$allowcid,$allowgid,$denycid,$denygid]
+ );
+ }
});
</script>