]> git.openstreetmap.org Git - osqa.git/commitdiff
Be able to update the image upload field properly. Set an ID attribute to the image...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 13 Jul 2011 20:40:20 +0000 (20:40 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 13 Jul 2011 20:40:20 +0000 (20:40 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1119 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/wmd/wmd.js
forum/skins/default/templates/base_content.html

index 678776d1e2a1c9241763eaa869202773ecfab570..ef16652778c5a58a9335f96b0e9a1c46b9afffd0 100644 (file)
@@ -28,7 +28,7 @@ function ajaxFileUpload(imageUrl)
                   if(error != ''){
                     alert(error);
                   }else{
-                    imageUrl.attr('value', fileURL);
+                    imageUrl.attr('value', appUrl + fileURL);
                   }
 
               },
@@ -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;
index 06a1fbce7576ead76de11916cf16e3b2b58c23d7..5e3bee821bf4500458197e068c23d009b1b97c03 100644 (file)
             google.load("jquery", "1.4.2");
             google.load("jqueryui", "1", {autoload:true});
 
-            var i18nLang = '{{settings.LANGUAGE_CODE}}';
-            var scriptUrl = '{{settings.FORCE_SCRIPT_NAME}}/'
-            var osqaSkin = '{{settings.OSQA_SKIN}}';
+            var i18nLang = '{{ settings.LANGUAGE_CODE }}';
+            var appUrl = '{{ settings.APP_URL }}'
+            var scriptUrl = '{{ settings.FORCE_SCRIPT_NAME }}/'
+            var osqaSkin = '{{ settings.OSQA_SKIN }}';
 
             var messages = {
                 username: '{{ user.username }}',