fix jquery url for admins/error pages
[qcg-portal.git] / filex / templates / filex / upload.js.html
index 9e661d0..7b64658 100644 (file)
@@ -65,7 +65,7 @@
                         data.context.find('.progress-info').text('Pominięto');
                 }
 
-                $.getJSON('{% url 'filex:info' %}', {host: host, path: path + file.name}, function(response) {
+                $.getJSON('{% url 'filex:info' %}', {host: host, path: path + '/' + file.name}, function(response) {
                     if (applyToAll != undefined) {
                         finish(applyToAll);
                         return;
                 data.context.find('.progress-info').text('Zakończono');
             },
             fail: function (e, data) {
-                data.context.find('.progress-info').text('Błąd');
+                data.context.find('.progress-info').text((data.jqXHR.responseJSON || {}).error || 'Błąd');
                 console.error(data);
             }
         });