diff --git a/mod/editpost.php b/mod/editpost.php index f23b305f..778ac3dc 100755 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -28,6 +28,10 @@ function editpost_content(&$a) { return; } + $plaintext = false; + if(local_user() && intval(get_pconfig(local_user(),'system','plaintext'))) + $plaintext = true; + $o .= '

' . t('Edit post') . '

'; diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 02662d2d..007f639b 100755 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -11,12 +11,12 @@ function initEditor(cb){ if(plaintext == 'none') { $("#profile-jot-text-loading").hide(); $("#profile-jot-text").css({ 'height': 200, 'color': '#000' }); - $(".jothidden").show(); editor = true; $("a#jot-perms-icon").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); + $(".jothidden").show(); if (typeof cb!="undefined") cb(); return; } diff --git a/view/jot.tpl b/view/jot.tpl index f116dc0f..1c19dd6f 100755 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -13,9 +13,7 @@ - {{ if $content }}{{ endif }} - - +