Browse Source

Merge pull request #1159 from jitsi/non-focusable-close-toastr

Makes close button non-focusable.
master
hristoterezov 7 years ago
parent
commit
56f15356c7
2 changed files with 4 additions and 2 deletions
  1. 3
    1
      modules/UI/UI.js
  2. 1
    1
      modules/UI/util/MessageHandler.js

+ 3
- 1
modules/UI/UI.js View File

@@ -474,7 +474,9 @@ UI.start = function () {
474 474
             "hideEasing": "linear",
475 475
             "showMethod": "fadeIn",
476 476
             "hideMethod": "fadeOut",
477
-            "newestOnTop": false
477
+            "newestOnTop": false,
478
+            // this is the default toastr close button html, just adds tabIndex
479
+            "closeHtml": '<button type="button" tabIndex="-1">&times;</button>'
478 480
         };
479 481
 
480 482
     }

+ 1
- 1
modules/UI/util/MessageHandler.js View File

@@ -439,7 +439,7 @@ var messageHandler = {
439 439
      * @param messageKey the key from the language file for the text of the
440 440
      * message.
441 441
      * @param messageArguments object with the arguments for the message.
442
-     * @param options object with language options.
442
+     * @param options passed to toastr (e.g. timeOut)
443 443
      */
444 444
     notify: function(displayName, displayNameKey, cls, messageKey,
445 445
                      messageArguments, options) {

Loading…
Cancel
Save