function initEditor(cb){
if (editor==false){
$("#profile-jot-text-loading").show();
+ $("#jot-title-desc").show();
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
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();
});
}
}
+function enableOnUser(){
+ if (editor) return;
+ $(this).val("");
+ initEditor();
+}
+
</script>
<script type="text/javascript" src="js/ajaxupload.js" ></script>
<script>
var ispublic = '$ispublic';
+ var addtitle = '$addtitle';
+
$(document).ready(function() {
- /* enable tinymce on focus */
- $("#profile-jot-text").focus(function(){
- if (editor) return;
- $(this).val("");
- initEditor();
- });
-
+ /* enable tinymce on focus and click */
+ $("#profile-jot-text").focus(enableOnUser);
+ $("#profile-jot-text").click(enableOnUser);
+
var uploader = new window.AjaxUpload(
'wall-image-upload',
}
function itemTag(id) {
- $('#like-rotator-' + id).show();
reply = prompt("$term");
if(reply && reply.length) {
reply = reply.replace('#','');
if(reply.length) {
- $.get('tagger/' + id + '?term=' + reply, function(data) {
- $('#like-rotator-' + id).hide();
- });
+
+ commentBusy = true;
+ $('body').css('cursor', 'wait');
+
+ $.get('tagger/' + id + '?term=' + reply);
+ if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,3000);
+ liking = 1;
}
}
}