From b1a97cd01bfd19edb94cc2710f1a5eb2cf35b1be Mon Sep 17 00:00:00 2001 From: Joshua Zeltser Date: Tue, 25 Jun 2019 12:07:03 +0100 Subject: [PATCH] added translation function calls to the added aria-labels --- notebook/static/tree/js/notebooklist.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 73ebbfeaf..f13e6fb9a 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -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.