]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/wmd/wmd.js
bring back the question mark button of the markdown editor (WMD) and make it point...
[osqa.git] / forum / skins / default / media / js / wmd / wmd.js
index 678776d1e2a1c9241763eaa869202773ecfab570..fd429a4b241445b9ea532bc22ca6bc5705e29c38 100644 (file)
@@ -28,7 +28,7 @@ function ajaxFileUpload(imageUrl)
                   if(error != ''){
                     alert(error);
                   }else{
-                    imageUrl.attr('value', fileURL);
+                    imageUrl.attr('value', appUrl + fileURL);
                   }
 
               },
@@ -101,8 +101,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 +373,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;