fix null return on url

This commit is contained in:
Mike Macgirvin 2010-07-22 23:21:40 -07:00
parent 7a07a2cf31
commit 25afc87368

View File

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