mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-01 12:56:54 +08:00
added translation function calls to the added aria-labels
This commit is contained in:
parent
f8727352ec
commit
b1a97cd01b
@ -235,7 +235,6 @@ define([
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#button-select-all').click(function (e) {
|
||||
// toggle checkbox if the click doesn't come from the checkbox already
|
||||
if (!$(e.target).is('input[type=checkbox]')) {
|
||||
@ -815,14 +814,14 @@ define([
|
||||
//#issue 3961, update the checkbox aria-label when it changed
|
||||
if(selected.length>=1){
|
||||
if($('#select-all').prop("checked")){
|
||||
$('#button-select-all').attr("aria-label","Selected All "+ selected.length+" items");
|
||||
$('#button-select-all').attr("aria-label", i18n.msg._("Selected All "+ selected.length+" items"));
|
||||
}
|
||||
else{
|
||||
$('#button-select-all').attr("aria-label","Selected, "+ selected.length+" items");
|
||||
$('#button-select-all').attr("aria-label", i18n.msg._("Selected, "+ selected.length+" items"));
|
||||
}
|
||||
}
|
||||
else{
|
||||
$('#button-select-all').attr("aria-label","Select All/None");
|
||||
$('#button-select-all').attr("aria-label", i18n.msg._("Select All/None"));
|
||||
}
|
||||
|
||||
// If at aleast on item is selected, hide the selection instructions.
|
||||
|
Loading…
Reference in New Issue
Block a user