Skip to content

Commit

Permalink
Bootstrap alert compatible (#18909)
Browse files Browse the repository at this point in the history
* Bootstrap alert compatible

Alert compatibility with new Bootstrap versions.

* Strict comparison

* Bootstrap alert compatible minified file

Alert compatibility with new Bootstrap versions.
  • Loading branch information
saharin88 authored and Michael Babker committed May 15, 2018
1 parent 8028bc7 commit ff7addc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
5 changes: 3 additions & 2 deletions media/system/js/core-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ Joomla.editors.instances = Joomla.editors.instances || {
messagesBox = document.createElement( 'div' );

// Message class
alertClass = (type == 'notice') ? 'alert-info' : 'alert-' + type;
alertClass = (type == 'message') ? 'alert-success' : alertClass;
alertClass = (type === 'notice') ? 'alert-info' : 'alert-' + type;
alertClass = (type === 'message') ? 'alert-success' : alertClass;
alertClass = (type === 'error') ? 'alert-error alert-danger' : alertClass;

messagesBox.className = 'alert ' + alertClass;

Expand Down
17 changes: 1 addition & 16 deletions media/system/js/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff7addc

Please sign in to comment.