diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 3f8fe5302f..760cf58820 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -41,11 +41,13 @@ tinyMCE.init({ function jotGetLink() { reply = prompt("Please enter a link URL:"); - $('#profile-rotator').show(); - $.get('parse_url?url=' + reply, function(data) { - tinyMCE.execCommand('mceInsertRawHTML',false,data); - $('#profile-rotator').hide(); - }); + if(reply && reply.length) { + $('#profile-rotator').show(); + $.get('parse_url?url=' + reply, function(data) { + tinyMCE.execCommand('mceInsertRawHTML',false,data); + $('#profile-rotator').hide(); + }); + } }