]> git.mxchange.org Git - friendica.git/commitdiff
fix null return on url
authorMike Macgirvin <mike@macgirvin.com>
Fri, 23 Jul 2010 06:21:40 +0000 (23:21 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Fri, 23 Jul 2010 06:21:40 +0000 (23:21 -0700)
view/jot-header.tpl

index 3f8fe5302f59c331604148d4d454bec1dacd0eb4..760cf588203b6b8ee06bf86102f70f2f3d045a39 100644 (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();
+                       });
+               }
        }