aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-07-25 08:56:51 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-07-25 08:56:51 +0200
commit363c4c57986706f6fadac33717759c5ab3ed0b29 (patch)
tree5aaddac06efb8c1f08354b6e995988524817c953 /view/jot-header.tpl
parent57653f4fdff0e3ad3fa59c469a526b744dc22264 (diff)
downloadvolse-hubzilla-363c4c57986706f6fadac33717759c5ab3ed0b29.tar.gz
volse-hubzilla-363c4c57986706f6fadac33717759c5ab3ed0b29.tar.bz2
volse-hubzilla-363c4c57986706f6fadac33717759c5ab3ed0b29.zip
Remove "share" greyed text in jot editor when user reshare an item
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 8e671a0b3..795267ee3 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -187,8 +187,8 @@ function initEditor(cb){
function jotShare(id) {
$('#like-rotator-' + id).show();
-
$.get('share/' + id, function(data) {
+ if (!editor) $("#profile-jot-text").val("");
initEditor(function(){
tinyMCE.execCommand('mceInsertRawHTML',false,data);
$('#like-rotator-' + id).hide();
@@ -211,8 +211,11 @@ function initEditor(cb){
if(reply && reply.length) {
$('#profile-rotator').show();
$.get('parse_url?url=' + reply, function(data) {
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
- $('#profile-rotator').hide();
+ if (!editor) $("#profile-jot-text").val("");
+ initEditor(function(){
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#profile-rotator').hide();
+ });
});
}
}