mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
ui:bootstrap - backport accessibility update from b0372bb658, closes https://github.com/opnsense/core/pull/7599
This commit is contained in:
parent
5d98f9fde0
commit
b0cab3bdca
5
src/opnsense/www/js/bootstrap.js
vendored
5
src/opnsense/www/js/bootstrap.js
vendored
@ -1784,7 +1784,10 @@ if (typeof jQuery === 'undefined') {
|
||||
Tooltip.prototype.fixTitle = function () {
|
||||
var $e = this.$element
|
||||
if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
|
||||
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
|
||||
if (!$e.attr('aria-label') && !$e.text().trim()) {
|
||||
$e.attr('aria-label', $e.attr('title'));
|
||||
}
|
||||
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
3
src/opnsense/www/js/bootstrap.min.js
vendored
3
src/opnsense/www/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user