X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=filex%2Fstatic%2Ffilex%2Ffilex.js;h=e7ad4c4b575c3accb1deba6ac6978e0b31fcacf1;hb=edd1abec6c3948dd007a7a7d75ddcc28e9197e41;hp=18d78d41470e50ff866de865249da2b6c804c75c;hpb=8fa091024d4e474722fd81df48852625f926aa86;p=qcg-portal.git diff --git a/filex/static/filex/filex.js b/filex/static/filex/filex.js index 18d78d4..e7ad4c4 100644 --- a/filex/static/filex/filex.js +++ b/filex/static/filex/filex.js @@ -141,8 +141,7 @@ $(function(){ var data = this.model.toJSON(); data['url_params'] = $.param({ host: this.view.host, - path: this.view.path.full(), - name: this.model.get('name') + path: this.view.path.full() + '/' + this.model.get('name') }); data['cid'] = this.model.cid; @@ -350,7 +349,7 @@ $(function(){ error: function(collection, response) { view.files.reset(); - var msg = (response.responseJSON || {}).msg || 'Błąd serwera'; + var msg = (response.responseJSON || {}).error || 'Błąd serwera'; view.$noItems.hide(); view.$error.find('.msg').text(msg);