Merge pull request #12 from trentm/ff-doc-fix
docs: fix dropdown's closing right away in Firefox
This commit is contained in:
commit
5afb6ee05a
|
@ -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