From 862f0ff29addc5a764f5544ad64ac5453e818801 Mon Sep 17 00:00:00 2001 From: marijus Date: Sat, 8 Nov 2014 21:55:44 +0100 Subject: prevent posting before acl got populated since this will disregard the default acl setting and the post will be visible to the default audience without warning. the chance that this happens is quite small while writing a post but can easily happen on eg editing photos (maybe just tick a checkbox and press submit). the acl and submit buttons are disabled by default and will be activated as soon as acl is populated. --- view/js/acl.js | 1 + 1 file changed, 1 insertion(+) (limited to 'view/js/acl.js') diff --git a/view/js/acl.js b/view/js/acl.js index c129634a0..ec5e59962 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -269,5 +269,6 @@ ACL.prototype.populate = function(data){ $(el).removeAttr("data-src"); }); that.update_view(); + $('#dbtn-submit, #dbtn-acl').prop('disabled', false); } -- cgit v1.2.3