From: javyer Date: Mon, 16 Jul 2012 14:53:01 +0000 (+0000) Subject: Added a small error message in wmd.js X-Git-Tag: live~43 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/1cc8105e990487370773f8442f76d8793652cd36?hp=c78a504deb6278063bebe9c25cf35c333b92eaa6 Added a small error message in wmd.js 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 --- diff --git a/forum/skins/default/media/js/wmd/wmd.js b/forum/skins/default/media/js/wmd/wmd.js index fd429a4..ffc2439 100644 --- a/forum/skins/default/media/js/wmd/wmd.js +++ b/forum/skins/default/media/js/wmd/wmd.js @@ -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); + } } },