Permalink
Browse files

Fixing the plugin to not use the form target to post the images.

  • Loading branch information...
1 parent 1034044 commit b0e39d8a646db1d249e83e625d63b306db527bec @kalkehcoisa kalkehcoisa committed Aug 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 django_multiuploader/multiuploader/templates/multiuploader/form.html
@@ -150,6 +150,7 @@
var opts = {{ multiuploader_form.options|safe }};
// Making new RegExp from django string
+ opts['url'] = "{% url 'multiuploader' %}";
opts['acceptFileTypes'] = new RegExp(opts['acceptFileTypes'], 'i');
opts['maxNumberOfFiles'] = opts['maxNumberOfFiles'] - {{ number_files_attached|default:"0" }};
opts['destroy'] = function (e, data)

0 comments on commit b0e39d8

Please sign in to comment.