aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-30 14:31:06 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-30 14:31:06 +0100
commitd24cf0b85b24cb8d6d10e9fe66fed568f9fb08b2 (patch)
tree470336bcbdf0f989d48fb2c3349bd0ac0513da42 /view/tpl/jot-header.tpl
parent296117124c530ce7533431e6bb8a7958b89f7f51 (diff)
parent0e2c539d93e36db0b095e1dcd5080ce2b5fec1d7 (diff)
downloadvolse-hubzilla-d24cf0b85b24cb8d6d10e9fe66fed568f9fb08b2.tar.gz
volse-hubzilla-d24cf0b85b24cb8d6d10e9fe66fed568f9fb08b2.tar.bz2
volse-hubzilla-d24cf0b85b24cb8d6d10e9fe66fed568f9fb08b2.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index ffaa4e208..0ffc8b349 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -110,10 +110,21 @@ var activeCommentID = 0;
var activeCommentText = '';
$(document).ready(function() {
+
/* enable tinymce on focus and click */
$("#profile-jot-text").focus(enableOnUser);
$("#profile-jot-text").click(enableOnUser);
+ $('#id_mimetype').on('load', jotSetMime);
+ $('#id_mimetype').on('change', jotSetMime);
+
+ function jotSetMime() {
+ var mtype = $('#id_mimetype').val();
+ if(mtype == 'text/bbcode')
+ $('#profile-jot-submit-left').show();
+ else
+ $('#profile-jot-submit-left').hide();
+ }
$('#invisible-wall-file-upload').fileupload({
url: 'wall_attach/{{$nickname}}',