Skip to content

Commit

Permalink
Update js
Browse files Browse the repository at this point in the history
  • Loading branch information
itchief committed Jan 18, 2020
1 parent 00aedfd commit bfa50c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feedback/js/process-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ ProcessForm.prototype = function () {
_this._form.find('.form-attachments__item[data-id="' + i + '"]').attr('title', 'Размер файла больше ' + _this._settings.attachmentsMaxFileSize + 'Кб').addClass('is-invalid');
valid = false;
} else if (!_validateFileExtension(files[i].file.name, _this._settings.attachmentsFileExt)) {
_this._form.find('.form-attachments__item[data-id="' + i + '"]').eq(i).attr('title', 'Тип не соответствует разрешённым').addClass('is-invalid');
_this._form.find('.form-attachments__item[data-id="' + i + '"]').attr('title', 'Тип не соответствует разрешённым').addClass('is-invalid');
valid = false;
} else {
_this._form.find('.form-attachments__item[data-id="' + i + '"]').eq(i).attr('title', '').addClass('is-valid');
_this._form.find('.form-attachments__item[data-id="' + i + '"]').attr('title', '').addClass('is-valid');
}
}
}
Expand Down

0 comments on commit bfa50c6

Please sign in to comment.