diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-21 20:57:01 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-21 20:57:01 +0200 |
commit | 8efa103041cb8fd89b04f32cf234667c8fb3f5ad (patch) | |
tree | b2d95b8e6bdc4d62b9fcb50333aeb8ce5faddb4d /view | |
parent | 9638bf2b1eeb805b27eaf2f2e1e8a09bfd5c5514 (diff) | |
download | volse-hubzilla-8efa103041cb8fd89b04f32cf234667c8fb3f5ad.tar.gz volse-hubzilla-8efa103041cb8fd89b04f32cf234667c8fb3f5ad.tar.bz2 volse-hubzilla-8efa103041cb8fd89b04f32cf234667c8fb3f5ad.zip |
provide editor settings
Diffstat (limited to 'view')
-rw-r--r-- | view/css/conversation.css | 2 | ||||
-rwxr-xr-x | view/tpl/jot-header.tpl | 4 | ||||
-rwxr-xr-x | view/tpl/jot.tpl | 13 |
3 files changed, 11 insertions, 8 deletions
diff --git a/view/css/conversation.css b/view/css/conversation.css index e6324b30d..3ad9ed57f 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -31,7 +31,7 @@ position: relative; } -#profile-jot-reset { +#profile-jot-tools { position: absolute; top: 0px; right: 0px; diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index dd64c3454..be09fbebf 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -7,7 +7,7 @@ var pretext = '{{$pretext}}'; function initEditor(cb){ if(editor == false){ $("#profile-jot-text-loading").show(); - $("#profile-jot-reset").removeClass('d-none'); + $("#profile-jot-tools").removeClass('d-none'); {{$geotag}} if(plaintext == 'none') { $("#profile-jot-text-loading").hide(); @@ -308,7 +308,7 @@ var activeCommentText = ''; {{if $reset}} $(".jothidden").hide(); $("#profile-jot-text").removeClass('jot-expanded'); - $("#profile-jot-reset").addClass('d-none'); + $("#profile-jot-tools").addClass('d-none'); $("#jot-preview-content").html('').hide(); editor = false; {{else}} diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 0d1b4bd0d..2137baf9b 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -42,11 +42,14 @@ </div> {{/if}} <div id="jot-text-wrap"> - {{if $reset}} - <button id="profile-jot-reset" class="btn btn-outline-secondary btn-sm d-none border-0" title="{{$reset}}" onclick="itemCancel(); return false;"> - <i class="fa fa-close"></i> - </button> - {{/if}} + <div id="profile-jot-tools" class="btn-group d-none"> + <a id="profile-jot-settings" class="btn btn-outline-secondary btn-sm border-0" href="/settings/editor/?f=&rpath=/{{$return_path}}"><i class="fa fa-cog"></i></a> + {{if $reset}} + <button id="profile-jot-reset" class="btn btn-outline-secondary btn-sm border-0" title="{{$reset}}" onclick="itemCancel(); return false;"> + <i class="fa fa-close"></i> + </button> + {{/if}} + </div> <textarea class="profile-jot-text" id="profile-jot-text" name="body" tabindex="2" placeholder="{{$placeholdtext}}" >{{$content}}</textarea> </div> {{if $attachment}} |