Merge pull request #148 from fabrixxm/newacl
Remove "share" greyed text in jot editor when user reshare an item
This commit is contained in:
commit
9f34f587ea
|
@ -187,8 +187,8 @@ function initEditor(cb){
|
||||||
|
|
||||||
function jotShare(id) {
|
function jotShare(id) {
|
||||||
$('#like-rotator-' + id).show();
|
$('#like-rotator-' + id).show();
|
||||||
|
|
||||||
$.get('share/' + id, function(data) {
|
$.get('share/' + id, function(data) {
|
||||||
|
if (!editor) $("#profile-jot-text").val("");
|
||||||
initEditor(function(){
|
initEditor(function(){
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
$('#like-rotator-' + id).hide();
|
$('#like-rotator-' + id).hide();
|
||||||
|
@ -211,8 +211,11 @@ function initEditor(cb){
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
$('#profile-rotator').show();
|
$('#profile-rotator').show();
|
||||||
$.get('parse_url?url=' + reply, function(data) {
|
$.get('parse_url?url=' + reply, function(data) {
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
if (!editor) $("#profile-jot-text").val("");
|
||||||
$('#profile-rotator').hide();
|
initEditor(function(){
|
||||||
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
|
$('#profile-rotator').hide();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,11 +209,12 @@ function initEditor(cb) {
|
||||||
function jotShare(id) {
|
function jotShare(id) {
|
||||||
$('#like-rotator-' + id).show();
|
$('#like-rotator-' + id).show();
|
||||||
$.get('share/' + id, function(data) {
|
$.get('share/' + id, function(data) {
|
||||||
initEditor(function(){
|
if (!editor) $("#profile-jot-text").val("");
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
initEditor(function(){
|
||||||
$('#like-rotator-' + id).hide();
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
$(window).scrollTop(0);
|
$('#like-rotator-' + id).hide();
|
||||||
})
|
$(window).scrollTop(0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -230,8 +231,11 @@ function initEditor(cb) {
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
$('#profile-rotator').show();
|
$('#profile-rotator').show();
|
||||||
$.get('parse_url?url=' + reply, function(data) {
|
$.get('parse_url?url=' + reply, function(data) {
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
if (!editor) $("#profile-jot-text").val("");
|
||||||
$('#profile-rotator').hide();
|
initEditor(function(){
|
||||||
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
|
$('#profile-rotator').hide();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user