diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-03-09 23:21:00 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-03-09 23:21:00 +0100 |
commit | 1d59924f4dfe729ef436c715c80482acb4b55581 (patch) | |
tree | 80551dc03135005e52602e1be931e38c7d348b87 | |
parent | 00d7ea90a20c82d0f42541d64fe9c5ad23f18d6e (diff) | |
download | volse-hubzilla-1d59924f4dfe729ef436c715c80482acb4b55581.tar.gz volse-hubzilla-1d59924f4dfe729ef436c715c80482acb4b55581.tar.bz2 volse-hubzilla-1d59924f4dfe729ef436c715c80482acb4b55581.zip |
make areYouSure alert also if default post perms change
-rw-r--r-- | view/js/acl.js | 5 | ||||
-rw-r--r-- | view/js/mod_settings.js | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/view/js/acl.js b/view/js/acl.js index 77c65e21d..152ff6490 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -54,9 +54,12 @@ ACL.prototype.on_submit = function(){ }); $(that.deny_cid).each(function(i,v){ aclfileds.append("<input type='hidden' name='contact_deny[]' value='"+v+"'>"); - }); + }); // alert(aclfileds); + //areYouSure jquery plugin: recheck the form here + $('form').trigger('checkform.areYouSure'); + } ACL.prototype.search = function(){ diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 5e52d56ab..e144ed6cd 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -2,7 +2,7 @@ var ispublic = aStr['everybody'] ; $(document).ready(function() { - $('form').areYouSure(); // Warn user about unsaved settings + $('form').areYouSure({'addRemoveFieldsMarksDirty':true}); // Warn user about unsaved settings $("#id_permissions_role").change(function() { var role = $("#id_permissions_role").val(); |