- // check if maybe file with given name exists
- if (filex.files.some(function(item) { return item.get('name') == archive })) {
- $this.find('.alert').remove();
-
- $('<div>', {
- 'class': 'alert alert-danger',
- html: '<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> Plik o podanej już nazwie istnieje!'
- }).prependTo($this.find('.modal-body'));
-