mirror of
https://github.com/friendica/friendica
synced 2024-11-18 01:43:41 +00:00
fix null return on url
This commit is contained in:
parent
7a07a2cf31
commit
25afc87368
1 changed files with 7 additions and 5 deletions
|
@ -41,11 +41,13 @@ tinyMCE.init({
|
||||||
|
|
||||||
function jotGetLink() {
|
function jotGetLink() {
|
||||||
reply = prompt("Please enter a link URL:");
|
reply = prompt("Please enter a link URL:");
|
||||||
$('#profile-rotator').show();
|
if(reply && reply.length) {
|
||||||
$.get('parse_url?url=' + reply, function(data) {
|
$('#profile-rotator').show();
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
$.get('parse_url?url=' + reply, function(data) {
|
||||||
$('#profile-rotator').hide();
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
});
|
$('#profile-rotator').hide();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue