Skip to content

A free open source IT asset/license management system

Fixed label

snipe95945412b19d
diff --git a/public/js/bootstrap-table.js b/public/js/bootstrap-table.js
index bb0e066bf6..036d4a2e81 100755
--- a/public/js/bootstrap-table.js
+++ b/public/js/bootstrap-table.js
@@ -1118,7 +1118,7 @@
if (column.switchable) {
html.push(sprintf('<li role="menuitem" style="padding-left: 5px;">' +
- '<label class="sr-only">' + column.title + '</label><input type="checkbox" data-field="%s" value="%s"%s> %s</label>' +
+ '<label><input type="checkbox" aria-label="' + column.title + '" data-field="%s" value="%s"%s> %s</label>' +
'</li>', column.field, i, checked, column.title));
switchableCount++;
}
@@ -1173,7 +1173,7 @@
html = [];
html.push(
'<div class="pull-' + this.options.searchAlign + ' search">',
- sprintf('<label for="search" class="sr-only">Search</label><input class="form-control' +
+ sprintf('<label for="search" class="sr-only">Search</label><input name="search" class="form-control' +
sprintf(' input-%s', this.options.iconSize) +
'" type="text" placeholder="%s">',
this.options.formatSearch()),
diff --git a/public/js/extensions/export/bootstrap-table-export.js b/public/js/extensions/export/bootstrap-table-export.js
index 5499854a58..b399681e5e 100755
--- a/public/js/extensions/export/bootstrap-table-export.js
+++ b/public/js/extensions/export/bootstrap-table-export.js
@@ -45,7 +45,7 @@
'<div class="export btn-group">',
'<button class="btn btn-default dropdown-toggle" ' +
'data-toggle="dropdown" type="button">',
- '<i class="fa fa-download"></i> ',
+ '<i class="fa fa-download" aria-hidden="true"></i> ',
'<span class="sr-only">Export</span>',
'<span class="caret"></span>',
'</button>',
@@ -66,7 +66,7 @@
}
$.each(exportTypes, function (i, type) {
if (TYPE_NAME.hasOwnProperty(type)) {
- $menu.append(['<li data-type="' + type + '">',
+ $menu.append(['<li role="menuitem" data-type="' + type + '">',
'<a href="javascript:void(0)">',
TYPE_NAME[type],
'</a>',