X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=qcg%2Ftemplates%2Fqcg%2Fgridftp.html;h=12fe644abf3e119bcec9dac38159f72474d61b1b;hb=5456abffdf1fee64a216e7a8a6d09ba3fd01b3bd;hp=9eb5cee05d9e36d95afb19fc32e3d6104de071f2;hpb=1f0f07bbb4e5a5b1cc37428e8b33897fddf279aa;p=qcg-portal.git diff --git a/qcg/templates/qcg/gridftp.html b/qcg/templates/qcg/gridftp.html index 9eb5cee..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!' @@ -88,8 +86,10 @@ }); $('form').on('show.bs.modal', function() { - console.log('reset'); + $(this).find('.alert').remove(); this.reset(); + }).on('shown.bs.modal', function() { + $(this).find('input[type="text"]')[0].focus(); }); $('#btn-upload').on('click', function() {