Make fileInput progress bar change color on error (#1673)

* Make fileInput progress bar change color on error. Fixes #1672

* Grunt

* Update NEWS
This commit is contained in:
Winston Chang
2017-04-21 11:33:14 -05:00
committed by GitHub
parent f8f2acf6c3
commit eed869d321
6 changed files with 8 additions and 6 deletions

View File

@@ -169,7 +169,7 @@ $.extend(FileUploader.prototype, FileProcessor.prototype);
this.$container().css('visibility', visible ? 'visible' : 'hidden');
};
this.$setError = function(error) {
this.$bar().toggleClass('bar-danger', (error !== null));
this.$bar().toggleClass('progress-bar-danger', (error !== null));
if (error !== null) {
this.onProgress(null, 1);
this.$bar().text(error);