aboutsummaryrefslogtreecommitdiffstats
path: root/view/acl_selector.tpl
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-07-20 10:00:33 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-07-20 10:00:33 +0200
commit1c9ed08620578bebc8af16e003a2ecef2b8a1f37 (patch)
treeecd397799ba87820392329d2271b3ab268276a1b /view/acl_selector.tpl
parent0a3ae96093a1fd81414b4fceaf65d4e98efda26c (diff)
downloadvolse-hubzilla-1c9ed08620578bebc8af16e003a2ecef2b8a1f37.tar.gz
volse-hubzilla-1c9ed08620578bebc8af16e003a2ecef2b8a1f37.tar.bz2
volse-hubzilla-1c9ed08620578bebc8af16e003a2ecef2b8a1f37.zip
show acl selector in a popup with fancybox
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>