From 1cc8105e990487370773f8442f76d8793652cd36 Mon Sep 17 00:00:00 2001 From: javyer Date: Mon, 16 Jul 2012 14:53:01 +0000 Subject: [PATCH 1/1] 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 --- forum/skins/default/media/js/wmd/wmd.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); + } } }, -- 2.39.5