X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=view%2Fjot-header.tpl;h=007f639b671a00d0886bf31c10c268d26cef519d;hb=58a9c652de09817b9c5d5132de51b8690ed32d53;hp=829629f449bb10999149eb1d357aeac8b66754f9;hpb=f1c7db593cbbba6a1eec84e1f8c2681dbc94a97f;p=friendica.git
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
old mode 100644
new mode 100755
index 829629f449..007f639b67
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -3,15 +3,27 @@
var editor=false;
var textlen = 0;
+var plaintext = '$editselect';
function initEditor(cb){
if (editor==false){
- $("#profile-jot-text-loading").show();
- $("#jot-title-desc").show();
+ $("#profile-jot-text-loading").show();
+ if(plaintext == 'none') {
+ $("#profile-jot-text-loading").hide();
+ $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
+ editor = true;
+ $("a#jot-perms-icon").fancybox({
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic'
+ });
+ $(".jothidden").show();
+ if (typeof cb!="undefined") cb();
+ return;
+ }
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
- editor_selector: /(profile-jot-text|prvmail-text)/,
+ editor_selector: $editselect,
auto_focus: "profile-jot-text",
plugins : "bbcode,paste,autoresize",
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
@@ -82,7 +94,7 @@ function initEditor(cb){
ed.onInit.add(function(ed) {
ed.pasteAsPlainText = true;
$("#profile-jot-text-loading").hide();
- $("#profile-jot-submit-wrapper").show();
+ $(".jothidden").show();
if (typeof cb!="undefined") cb();
});
@@ -99,33 +111,24 @@ function initEditor(cb){
}
}
+function enableOnUser(){
+ if (editor) return;
+ $(this).val("");
+ initEditor();
+}
+
-
+