Browse Source

fix null return on url

pull/1/head
Mike Macgirvin 12 years ago
parent
commit
25afc87368
  1. 12
      view/jot-header.tpl

12
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();
});
}
}

Loading…
Cancel
Save