]> git.openstreetmap.org Git - osqa.git/commitdiff
Added a small error message in wmd.js
authorjavyer <javyer@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 16 Jul 2012 14:53:01 +0000 (14:53 +0000)
committerjavyer <javyer@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 16 Jul 2012 14:53:01 +0000 (14:53 +0000)
Tries to add some feedback for the user when there's a server error uploading an image.

git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1274 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/wmd/wmd.js

index fd429a4b241445b9ea532bc22ca6bc5705e29c38..ffc2439e6d7d4c48bb72ab10cbadded29d55e342 100644 (file)
@@ -28,7 +28,12 @@ function ajaxFileUpload(imageUrl)
                   if(error != ''){
                     alert(error);
                   }else{
-                    imageUrl.attr('value', appUrl + fileURL);
+                    if(fileURL == ''){
+                         alert("There was an internal server error uploading your file.\nPermission denied.");
+                       }
+                       else{
+                      imageUrl.attr('value', appUrl + fileURL);
+                   }
                   }
 
               },