]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/wmd/wmd.js
Remove footer link to squatted domain
[osqa.git] / forum / skins / default / media / js / wmd / wmd.js
index 678776d1e2a1c9241763eaa869202773ecfab570..ffc2439e6d7d4c48bb72ab10cbadded29d55e342 100644 (file)
@@ -28,7 +28,12 @@ function ajaxFileUpload(imageUrl)
                   if(error != ''){
                     alert(error);
                   }else{
-                    imageUrl.attr('value', fileURL);
+                    if(fileURL == ''){
+                         alert("There was an internal server error uploading your file.\nPermission denied.");
+                       }
+                       else{
+                      imageUrl.attr('value', appUrl + fileURL);
+                   }
                   }
 
               },
@@ -101,8 +106,8 @@ Attacklab.wmdBase = function(){
        var pastePollInterval = 100;
        
        // The link and title for the help button
-       var helpLink = "http://wmd-editor.com/";
-       var helpHoverTitle = "WMD website";
+       var helpLink = "http://daringfireball.net/projects/markdown/syntax";
+       var helpHoverTitle = "MarkDown Syntax";
        var helpTarget = "_blank";
        
        // -------------------------------------------------------------------
@@ -373,6 +378,7 @@ Attacklab.wmdBase = function(){
                        
                        // The input text box
                        input = doc.createElement("input");
+            input.id = "image-url";
                        input.type = "text";
                        input.value = defaultInputText;
                        style = input.style;