aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl12
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();
+ });
+ }
}