aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-01-30 16:13:30 +0100
committerGitHub <noreply@github.com>2018-01-30 16:13:30 +0100
commit7ac4b477020689572a50dbc777c968263e86f6c4 (patch)
tree470336bcbdf0f989d48fb2c3349bd0ac0513da42 /view/tpl/jot-header.tpl
parentc2abbe2c238fa4d66e8a088c7d271acaa7e20876 (diff)
parentd24cf0b85b24cb8d6d10e9fe66fed568f9fb08b2 (diff)
downloadvolse-hubzilla-7ac4b477020689572a50dbc777c968263e86f6c4.tar.gz
volse-hubzilla-7ac4b477020689572a50dbc777c968263e86f6c4.tar.bz2
volse-hubzilla-7ac4b477020689572a50dbc777c968263e86f6c4.zip
Merge pull request #13 from redmatrix/dev
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}}',