docs: fix dropdown's closing right away in Firefox
This commit is contained in:
parent
7225e8d5ee
commit
4131360362
|
@ -13,7 +13,7 @@ $(function () {
|
|||
$("#toc a").click(function(event) {
|
||||
$("#tocbutton").click();
|
||||
})
|
||||
$("#tocbutton").click(function() {
|
||||
$("#tocbutton").click(function(event) {
|
||||
var target = $("#toc");
|
||||
if (target.css("display") !== "block") {
|
||||
$("body").bind("click.tocCloser", function(event) {
|
||||
|
@ -35,7 +35,7 @@ $(function () {
|
|||
$("#api a").click(function(event) {
|
||||
$("#apibutton").click();
|
||||
})
|
||||
$("#apibutton").click(function() {
|
||||
$("#apibutton").click(function(event) {
|
||||
var target = $("#api");
|
||||
if (target.css("display") !== "block") {
|
||||
$("body").bind("click.apiCloser", function(event) {
|
||||
|
|
Loading…
Reference in New Issue