|
Lines 233-242
if (typeof enquire == "object") {
Link Here
|
| 233 |
|
233 |
|
| 234 |
function facetMenu(action) { |
234 |
function facetMenu(action) { |
| 235 |
if (action == "show") { |
235 |
if (action == "show") { |
| 236 |
$(".menu-collapse-toggle").off("click", facetHandler); |
236 |
$(".menu-collapse-toggle") |
|
|
237 |
.removeAttr("aria-expanded") |
| 238 |
.off("click", facetHandler); |
| 237 |
$(".menu-collapse").show(); |
239 |
$(".menu-collapse").show(); |
| 238 |
} else { |
240 |
} else { |
| 239 |
$(".menu-collapse-toggle") |
241 |
$(".menu-collapse-toggle") |
|
|
242 |
.attr("aria-expanded", "false") |
| 240 |
.on("click", facetHandler) |
243 |
.on("click", facetHandler) |
| 241 |
.removeClass("menu-open"); |
244 |
.removeClass("menu-open"); |
| 242 |
$(".menu-collapse").hide(); |
245 |
$(".menu-collapse").hide(); |
|
Lines 247-254
var facetHandler = function (e) {
Link Here
|
| 247 |
e.preventDefault(); |
250 |
e.preventDefault(); |
| 248 |
$(this).toggleClass("menu-open"); |
251 |
$(this).toggleClass("menu-open"); |
| 249 |
$(".menu-collapse").toggle(); |
252 |
$(".menu-collapse").toggle(); |
|
|
253 |
setAriaExpandable(e); |
| 250 |
}; |
254 |
}; |
| 251 |
|
255 |
|
|
|
256 |
function setAriaExpandable(e) { |
| 257 |
let currentValue = $(e.target).attr("aria-expanded"); |
| 258 |
$(e.target).attr("aria-expanded", currentValue === "false"); |
| 259 |
} |
| 260 |
|
| 252 |
function setPlaceholder() { |
261 |
function setPlaceholder() { |
| 253 |
let search_placeholder = $("#masthead_search option:selected").data( |
262 |
let search_placeholder = $("#masthead_search option:selected").data( |
| 254 |
"placeholder" |
263 |
"placeholder" |
| 255 |
- |
|
|