@@ -1120,15 +1120,15 @@ public function simple_widget() {
1120
1120
1121
1121
if ( $ term ['attr ' ] == 'Archived ' ) {
1122
1122
$ html .= '<span class="term-value-wrapper"> ' ;
1123
- $ html .= htmlSelect ("filter[Query][terms][ $ i][val] " , $ archiveTypes , $ term ['val ' ],['class ' =>'chosen chosen-auto-width ' ]).PHP_EOL ;
1123
+ $ html .= htmlSelect ("filter[Query][terms][ $ i][val] " , $ archiveTypes , $ term ['val ' ],['id ' => ' filterArchived ' , ' class ' =>'chosen chosen-auto-width ' ]).PHP_EOL ;
1124
1124
$ html .= '</span> ' ;
1125
1125
} else if ( $ term ['attr ' ] == 'Tags ' ) {
1126
1126
$ selected = explode (', ' , $ term ['val ' ]);
1127
1127
// echo '<pre>selected: '; print_r($selected); echo '</pre>';
1128
1128
if (count ($ selected ) == 1 and !$ selected [0 ]) {
1129
1129
$ selected = null ;
1130
1130
}
1131
- $ options = ['class ' =>'chosen chosen-auto-width ' , 'multiple ' =>'multiple ' , 'data-placeholder ' =>translate ('All Tags ' )];
1131
+ $ options = ['id ' => ' filterTags ' , ' class ' =>'chosen chosen-auto-width ' , 'multiple ' =>'multiple ' , 'data-placeholder ' =>translate ('All Tags ' )];
1132
1132
if (isset ($ term ['cookie ' ])) {
1133
1133
$ options ['data-cookie ' ] = $ term ['cookie ' ];
1134
1134
@@ -1256,7 +1256,7 @@ public function simple_widget() {
1256
1256
['class ' =>'term-value chosen chosen-auto-width ' , 'multiple ' =>'multiple ' ]).PHP_EOL ;
1257
1257
$ html .= '</span> ' ;
1258
1258
} else if ( $ term ['attr ' ] == 'Notes ' ) {
1259
- $ attrs = ['class ' =>'term-value chosen chosen-auto-width ' , 'multiple ' =>'multiple ' , 'data-placeholder ' =>translate ('Event Type ' )];
1259
+ $ attrs = ['id ' => ' filterNotes ' , ' class ' =>'term-value chosen chosen-auto-width ' , 'multiple ' =>'multiple ' , 'data-placeholder ' =>translate ('Event Type ' )];
1260
1260
$ selected = explode (', ' , $ term ['val ' ]);
1261
1261
if (count ($ selected ) == 1 and !$ selected [0 ]) {
1262
1262
$ selected = null ;
0 commit comments