diff options
author | friendica <info@friendica.com> | 2014-11-12 18:35:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-12 18:35:33 -0800 |
commit | 800e457290a6cb602470bc07a52e8530628469dc (patch) | |
tree | 2bdf03794049764f59d7a38ef4df00938c85fa06 /view | |
parent | a2cf1900c8383ca18507904329a8723fce1ae806 (diff) | |
download | volse-hubzilla-800e457290a6cb602470bc07a52e8530628469dc.tar.gz volse-hubzilla-800e457290a6cb602470bc07a52e8530628469dc.tar.bz2 volse-hubzilla-800e457290a6cb602470bc07a52e8530628469dc.zip |
populate initial ACL before the ajax loader gets called, just in case the form is submitted before it completes. Related to issue #615
Diffstat (limited to 'view')
-rw-r--r-- | view/js/acl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/view/js/acl.js b/view/js/acl.js index ec5e59962..eb702d2b0 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -17,6 +17,9 @@ function ACL(backend_url, preset){ that.item_tpl = unescape($(".acl-list-item[rel=acl-template]").html()); that.showall = $("#acl-showall"); + // set the initial ACL lists in case the enclosing form gets submitted before the ajax loader completes. + that.on_submit(); + if (preset.length==0) that.showall.removeClass("btn-default").addClass("btn-warning"); /*events*/ @@ -26,7 +29,6 @@ function ACL(backend_url, preset){ $(document).on('click','.acl-button-show',that.on_button_show); $(document).on('click','.acl-button-hide',that.on_button_hide); $("#acl-search").keypress(that.on_search); -// $("#acl-wrapper").parents("form").submit(that.on_submit); /* startup! */ that.get(0,100); |