X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=qcg%2Ftemplates%2Fqcg%2Fgridftp.html;h=12fe644abf3e119bcec9dac38159f72474d61b1b;hb=5456abffdf1fee64a216e7a8a6d09ba3fd01b3bd;hp=0b0d55a1432a7295458afa0cb655b89cfd296760;hpb=edd1abec6c3948dd007a7a7d75ddcc28e9197e41;p=qcg-portal.git diff --git a/qcg/templates/qcg/gridftp.html b/qcg/templates/qcg/gridftp.html index 0b0d55a..12fe644 100644 --- a/qcg/templates/qcg/gridftp.html +++ b/qcg/templates/qcg/gridftp.html @@ -54,8 +54,6 @@ function conflictingName(name, modal) { if (filex.files.some(function(item) { return item.get('name') == name })) { - modal.find('.alert').remove(); - $('
', { 'class': 'alert alert-danger', html: ' Plik o podanej już nazwie istnieje!' @@ -87,6 +85,13 @@ } }); + $('form').on('show.bs.modal', function() { + $(this).find('.alert').remove(); + this.reset(); + }).on('shown.bs.modal', function() { + $(this).find('input[type="text"]')[0].focus(); + }); + $('#btn-upload').on('click', function() { var url = '{% url 'gridftp_upload' %}?' + $.param({host: filex.host, path: filex.path.full()});