Fix hover event handler

rtd2
Eric Holscher 2013-08-25 21:50:53 -07:00
parent 39efa35d52
commit 2c427c899b
1 changed files with 15 additions and 5 deletions

View File

@ -75,6 +75,12 @@
})(); })();
/*
* Grok the Docs event handling
* This will allow you to better
* understand whats happening in your docs,
* once fully rolled out.
*/
$(document).ready(function () { $(document).ready(function () {
@ -100,10 +106,16 @@ $(document).ready(function () {
logHashChange(gtd_project, gtd_version, gtd_page, id, hash); logHashChange(gtd_project, gtd_version, gtd_page, id, hash);
}); });
$("a.rtd-badge.rtd").hover(function (ev) { $("a.rtd-badge.rtd").hover(
function (ev) {
logHover(gtd_project, gtd_version, gtd_page); logHover(gtd_project, gtd_version, gtd_page);
}) },
function (ev) {
// We only want hover in
}
)
});
function logHover(project, version, page) { function logHover(project, version, page) {
$.ajax({ $.ajax({
@ -148,5 +160,3 @@ function logHashChange(project, version, page, id, hash) {
} }
}); });
} }
});