function enableOnUser(){
if (editor) return;
- $(this).val("");
+ //$(this).val("");
initEditor();
}
$("#profile-jot-text").focus(enableOnUser);
$("#profile-jot-text").click(enableOnUser);
-
+ // When clicking on a forum in acl we should remove the profile jot textarea
+ // default value before inserting the forum mention
+ $("body").on('click', '#jot-modal .acl-list-item.forum', function(){
+ jotTextOpenUI(document.getElementById("profile-jot-text"));
+ });
/* show images / file browser window
function addeditortext(data) {
if(plaintext == 'none') {
+ // get the textfield
+ var textfield = document.getElementById("profile-jot-text");
+ // check if the textfield does have the default-value
+ jotTextOpenUI(textfield);
+ // save already existent content
var currentText = $("#profile-jot-text").val();
- $("#profile-jot-text").val(currentText + data);
+ //insert the data as new value
+ textfield.value = currentText + data;
}
else
tinyMCE.execCommand('mceInsertRawHTML',false,data);
jotcache = $("#profile-jot-form");
modal
- .find('#jot-modal-body')
+ .find('#jot-modal-content')
.append(jotcache)
- .modal.show
- ;
+ .modal.show;
}
// the following functions show/hide the specific jot content
$(function() {Dialog.showJot();});
}
+
</script>