fix null return on url
This commit is contained in:
parent
7a07a2cf31
commit
25afc87368
|
@ -41,12 +41,14 @@ tinyMCE.init({
|
||||||
|
|
||||||
function jotGetLink() {
|
function jotGetLink() {
|
||||||
reply = prompt("Please enter a link URL:");
|
reply = prompt("Please enter a link URL:");
|
||||||
|
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);
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user