|
@@ -1066,7 +1066,7 @@
|
|
|
html.push(sprintf('<button class="btn' +
|
|
html.push(sprintf('<button class="btn' +
|
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
- '" type="button" name="paginationSwitch" title="%s">',
|
|
|
|
|
|
|
+ '" type="button" name="paginationSwitch" aria-label="pagination Switch" title="%s">',
|
|
|
this.options.formatPaginationSwitch()),
|
|
this.options.formatPaginationSwitch()),
|
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.paginationSwitchDown),
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.paginationSwitchDown),
|
|
|
'</button>');
|
|
'</button>');
|
|
@@ -1076,7 +1076,7 @@
|
|
|
html.push(sprintf('<button class="btn' +
|
|
html.push(sprintf('<button class="btn' +
|
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
- '" type="button" name="refresh" title="%s">',
|
|
|
|
|
|
|
+ '" type="button" name="refresh" aria-label="refresh" title="%s">',
|
|
|
this.options.formatRefresh()),
|
|
this.options.formatRefresh()),
|
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.refresh),
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.refresh),
|
|
|
'</button>');
|
|
'</button>');
|
|
@@ -1086,7 +1086,7 @@
|
|
|
html.push(sprintf('<button class="btn' +
|
|
html.push(sprintf('<button class="btn' +
|
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
- '" type="button" name="toggle" title="%s">',
|
|
|
|
|
|
|
+ '" type="button" name="toggle" aria-label="toggle" title="%s">',
|
|
|
this.options.formatToggle()),
|
|
this.options.formatToggle()),
|
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.toggle),
|
|
sprintf('<i class="%s %s"></i>', this.options.iconsPrefix, this.options.icons.toggle),
|
|
|
'</button>');
|
|
'</button>');
|
|
@@ -1095,7 +1095,7 @@
|
|
|
if (this.options.showColumns) {
|
|
if (this.options.showColumns) {
|
|
|
html.push(sprintf('<div class="keep-open btn-group" title="%s">',
|
|
html.push(sprintf('<div class="keep-open btn-group" title="%s">',
|
|
|
this.options.formatColumns()),
|
|
this.options.formatColumns()),
|
|
|
- '<button type="button" class="btn' +
|
|
|
|
|
|
|
+ '<button type="button" aria-label="columns" class="btn' +
|
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
sprintf(' btn-%s', this.options.buttonsClass) +
|
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
sprintf(' btn-%s', this.options.iconSize) +
|
|
|
' dropdown-toggle" data-toggle="dropdown">',
|
|
' dropdown-toggle" data-toggle="dropdown">',
|
|
@@ -1116,7 +1116,7 @@
|
|
|
var checked = column.visible ? ' checked="checked"' : '';
|
|
var checked = column.visible ? ' checked="checked"' : '';
|
|
|
|
|
|
|
|
if (column.switchable) {
|
|
if (column.switchable) {
|
|
|
- html.push(sprintf('<li>' +
|
|
|
|
|
|
|
+ html.push(sprintf('<li role="menuitem">' +
|
|
|
'<label><input type="checkbox" data-field="%s" value="%s"%s> %s</label>' +
|
|
'<label><input type="checkbox" data-field="%s" value="%s"%s> %s</label>' +
|
|
|
'</li>', column.field, i, checked, column.title));
|
|
'</li>', column.field, i, checked, column.title));
|
|
|
switchableCount++;
|
|
switchableCount++;
|
|
@@ -1392,7 +1392,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
active = page === that.options.pageSize ? ' class="active"' : '';
|
|
active = page === that.options.pageSize ? ' class="active"' : '';
|
|
|
}
|
|
}
|
|
|
- pageNumber.push(sprintf('<li%s><a href="javascript:void(0)">%s</a></li>', active, page));
|
|
|
|
|
|
|
+ pageNumber.push(sprintf('<li role="menuitem"%s><a href="javascript:void(0)">%s</a></li>', active, page));
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
pageNumber.push('</ul></span>');
|
|
pageNumber.push('</ul></span>');
|