Skip to content

Commit

Permalink
Merge pull request jitsi#1159 from jitsi/non-focusable-close-toastr
Browse files Browse the repository at this point in the history
Makes close button non-focusable.
  • Loading branch information
hristoterezov authored Nov 23, 2016
2 parents 4900fe0 + b5dfc2a commit 56f1535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/UI/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ UI.start = function () {
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut",
"newestOnTop": false
"newestOnTop": false,
// this is the default toastr close button html, just adds tabIndex
"closeHtml": '<button type="button" tabIndex="-1">&times;</button>'
};

}
Expand Down
2 changes: 1 addition & 1 deletion modules/UI/util/MessageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ var messageHandler = {
* @param messageKey the key from the language file for the text of the
* message.
* @param messageArguments object with the arguments for the message.
* @param options object with language options.
* @param options passed to toastr (e.g. timeOut)
*/
notify: function(displayName, displayNameKey, cls, messageKey,
messageArguments, options) {
Expand Down

0 comments on commit 56f1535

Please sign in to comment.