You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,32 +67,44 @@ Requires core.js and SelectBox.js.
69
67
filter_input.id=field_id+'_input';
70
68
71
69
selector_available.appendChild(from_box);
72
-
constchoose_all=quickElement('a',selector_available,gettext('Choose all'),'title',interpolate(gettext('Click to choose all %s at once.'),[field_name]),'href','#','id',field_id+'_add_all_link');
73
-
choose_all.className='selector-chooseall';
70
+
constchoose_all=quickElement(
71
+
'button',
72
+
selector_available,
73
+
interpolate(gettext('Choose all %s'),[field_name]),
quickElement('span',warning_footer,' '+gettext('(click to clear)'),'class','list-footer-display__clear');
122
-
123
-
constclear_all=quickElement('a',selector_chosen,gettext('Remove all'),'title',interpolate(gettext('Click to remove all chosen %s at once.'),[field_name]),'href','#','id',field_id+'_remove_all_link');
124
-
clear_all.className='selector-clearall';
140
+
constclear_all=quickElement(
141
+
'button',
142
+
selector_chosen,
143
+
interpolate(gettext('Remove all %s'),[field_name]),
144
+
'id',field_id+'_remove_all',
145
+
'class','selector-clearall'
146
+
);
125
147
126
148
from_box.name=from_box.name+'_old';
127
149
@@ -138,10 +160,10 @@ Requires core.js and SelectBox.js.
assert.equal($('.selector-available .selector-available-title label').text(),"Available things ");
28
+
assert.equal($('.selector-available .selector-available-title .helptext').text(),'Choose things by selecting them and then select the "Choose" arrow button.');
assert.equal($('.selector-chosen .selector-chosen-title label').text(),"Chosen things ");
31
+
assert.equal($('.selector-chosen .selector-chosen-title .helptext').text(),'Remove things by selecting them and then select the "Remove" arrow button.');
32
+
assert.equal($('.selector-filter label .help-tooltip')[0].getAttribute("aria-label"),"Type into this box to filter down the list of available things.");
33
+
assert.equal($('.selector-filter label .help-tooltip')[1].getAttribute("aria-label"),"Type into this box to filter down the list of selected things.");
22
34
});
23
35
24
36
QUnit.test('filtering available options',function(assert){
0 commit comments