summaryrefslogtreecommitdiffstats
path: root/askbot/views
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-04 00:09:15 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-04 00:09:15 -0400
commit70225986558be947cad393192bd1c8efee054673 (patch)
treedc3086495613795ae015ded10b3cdf9f01c05893 /askbot/views
parentdbddb20b09b327e23161cf512f0149d4972cf277 (diff)
downloadaskbot-70225986558be947cad393192bd1c8efee054673.tar.gz
askbot-70225986558be947cad393192bd1c8efee054673.tar.bz2
askbot-70225986558be947cad393192bd1c8efee054673.zip
tweaked autocompleter to prevent launching new search when previous did not return
Diffstat (limited to 'askbot/views')
-rw-r--r--askbot/views/writers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/views/writers.py b/askbot/views/writers.py
index 58530522..4ad7ea7b 100644
--- a/askbot/views/writers.py
+++ b/askbot/views/writers.py
@@ -122,8 +122,8 @@ def upload(request):#ajax upload file to a question or answer
# 'file_url': file_url
#})
#return HttpResponse(data, mimetype = 'application/json')
- xml_template = "<result><msg><![CDATA[%s]]></msg><error><![CDATA[%s]]></error><file_url>%s</file_url></result>"
- xml = xml_template % (result, error, file_url)
+ xml_template = "<result><msg><![CDATA[%s]]></msg><error><![CDATA[%s]]></error><file_url>%s</file_url><orig_file_name><![CDATA[%s]]></orig_file_name></result>"
+ xml = xml_template % (result, error, file_url, f.name)
return HttpResponse(xml, mimetype="application/xml")