summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-22 21:35:10 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-22 21:35:10 -0500
commita00d0c172d129986509943218e4c44dc3c40aff4 (patch)
tree51bf21d17f49d852770ad54178a4fcbe3d9bb18a
parentaa15395a7bba6529c2116e354bda97de2afa5e6f (diff)
downloadaskbot-a00d0c172d129986509943218e4c44dc3c40aff4.tar.gz
askbot-a00d0c172d129986509943218e4c44dc3c40aff4.tar.bz2
askbot-a00d0c172d129986509943218e4c44dc3c40aff4.zip
fixed file upload bug in wmd that I have introduced earlier
-rw-r--r--forum/auth.py2
-rw-r--r--forum/skins/default/media/js/wmd/wmd.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/forum/auth.py b/forum/auth.py
index 1569482f..3533b9ce 100644
--- a/forum/auth.py
+++ b/forum/auth.py
@@ -19,7 +19,7 @@ answer_type = ContentType.objects.get_for_model(Answer)
VOTE_UP = 15
FLAG_OFFENSIVE = 15
POST_IMAGES = 15
-LEAVE_COMMENTS = 50
+LEAVE_COMMENTS = 50
UPLOAD_FILES = 60
VOTE_DOWN = 100
CLOSE_OWN_QUESTIONS = 250
diff --git a/forum/skins/default/media/js/wmd/wmd.js b/forum/skins/default/media/js/wmd/wmd.js
index e81a8046..70271d4d 100644
--- a/forum/skins/default/media/js/wmd/wmd.js
+++ b/forum/skins/default/media/js/wmd/wmd.js
@@ -52,9 +52,9 @@ Attacklab.wmdBase = function(){
var imageDialogText = "<p style='margin-top: 0px'>" + $.i18n._('enter image url') + '</p>';
var linkDialogText = "<p style='margin-top: 0px'>" + $.i18n._('enter url') + '</p>';
var uploadImageHTML ="<div>" + $.i18n._('upload image') + "</div>" +
- '<input type="file" name="file-upload" id="file-upload" size="26" '+
- 'onchange="return ajaxFileUpload($("#image-url"));"/><br>' +
- '<img id="loading" src="/m/default/media/images/indicator.gif" style="display:none;"/>';
+ "<input type=\"file\" name=\"file-upload\" id=\"file-upload\" size=\"26\" "+
+ "onchange=\"return ajaxFileUpload($('#image-url'));\"/><br>" +
+ "<img id=\"loading\" src=\"" + mediaUrl("media/images/indicator.gif") + "\" style=\"display:none;\"/>";
// The default text that appears in the dialog input box when entering
// links.