4,656
edits
No edit summary |
No edit summary |
||
| Line 1,781: | Line 1,781: | ||
jQuery(document).on("keydown.swprint", function (e) { | jQuery(document).on("keydown.swprint", function (e) { | ||
if (e && e.keyCode === 27) swHidePrintUI(); | if (e && e.keyCode === 27) swHidePrintUI(); | ||
}); | |||
jQuery(document).on("click", "#print-selection-button", function (e) { | |||
e.preventDefault(); | |||
var $chooser = swEnsurePrintChooser(); | |||
$chooser.css({ position: "absolute", zIndex: 99999 }); | |||
$chooser.toggle(); | |||
var visible = $chooser.is(":visible"); | |||
jQuery("#show-article").toggleClass("print-opts-open", visible); | |||
swBindChoiceAnchors(); | |||
}); | |||
// toggle filtered print options | |||
jQuery(document).on("click", ".print-selection-toggle", function (e) { | |||
e.preventDefault(); | |||
jQuery("#print-selection-options").toggle(); | |||
}); | }); | ||