function enableOnUser(){
if (editor) return;
- $(this).val("");
+ //$(this).val("");
initEditor();
}
$(document).ready(function() {
/* enable tinymce on focus and click */
- //$("#profile-jot-text").focus(enableOnUser);
- //$("#profile-jot-text").click(enableOnUser);
+ $("#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
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