From 25afc87368f08f8bc0d2c8a5dfe66aba47b48a73 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 22 Jul 2010 23:21:40 -0700 Subject: [PATCH] fix null return on url --- view/jot-header.tpl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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(); + }); + } }