diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-22 23:21:40 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-22 23:21:40 -0700 |
commit | 25afc87368f08f8bc0d2c8a5dfe66aba47b48a73 (patch) | |
tree | 92e4081f1bdfe70c16562a76b19961e2956775ea /view/jot-header.tpl | |
parent | 7a07a2cf3198ecc5de8ef2d45f5be48fdabd48a3 (diff) | |
download | volse-hubzilla-25afc87368f08f8bc0d2c8a5dfe66aba47b48a73.tar.gz volse-hubzilla-25afc87368f08f8bc0d2c8a5dfe66aba47b48a73.tar.bz2 volse-hubzilla-25afc87368f08f8bc0d2c8a5dfe66aba47b48a73.zip |
fix null return on url
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r-- | view/jot-header.tpl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 3f8fe5302..760cf5882 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(); + }); + } } |