diff options
author | marijus <mario@mariovavti.com> | 2014-11-08 21:55:44 +0100 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-11-08 21:55:44 +0100 |
commit | 862f0ff29addc5a764f5544ad64ac5453e818801 (patch) | |
tree | 7af52960ee5245fbcb4d069014e28c9ce6a00e90 /view/tpl/jot.tpl | |
parent | ec4e4b82e958e7ba5a4efc8c370917c3e10bcba0 (diff) | |
download | volse-hubzilla-862f0ff29addc5a764f5544ad64ac5453e818801.tar.gz volse-hubzilla-862f0ff29addc5a764f5544ad64ac5453e818801.tar.bz2 volse-hubzilla-862f0ff29addc5a764f5544ad64ac5453e818801.zip |
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.
Diffstat (limited to 'view/tpl/jot.tpl')
-rwxr-xr-x | view/tpl/jot.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 12da18ef1..29dc41525 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -76,7 +76,7 @@ </div> <div id="profile-jot-submit-right" class="btn-group pull-right"> {{if $showacl}} - <button class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" onclick="return false;"> + <button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" disabled="disabled" onclick="return false;"> <i id="jot-perms-icon" class="icon-{{$lockstate}} jot-icons">{{$bang}}</i> </button> {{/if}} @@ -85,7 +85,7 @@ <i class="icon-eye-open jot-icons" ></i> </button> {{/if}} - <button class="btn btn-primary btn-sm" type="submit" name="button-submit">{{$share}}</button> + <button id="dbtn-submit" class="btn btn-primary btn-sm" type="submit" name="button-submit"{{if $showacl}} disabled="disabled"{{/if}}>{{$share}}</button> </div> <div id="profile-jot-perms-end"></div> <div id="profile-jot-plugin-wrapper"> |