nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b7a3f
)
nitdoc: Add a hover behavior to the mouse
author
Stefan Lage
<lagestfan@gmail.com>
Wed, 8 May 2013 20:38:23 +0000
(16:38 -0400)
committer
Stefan Lage
<lagestfan@gmail.com>
Fri, 24 May 2013 02:26:50 +0000
(22:26 -0400)
When the cursor is hover a comment it display a 'hand' and disable it
when it is not hover.
signed-off by: Stefan Lage <lagestfan@gmail.com>
share/nitdoc/scripts/js-facilities.js
patch
|
blob
|
history
diff --git
a/share/nitdoc/scripts/js-facilities.js
b/share/nitdoc/scripts/js-facilities.js
index
2e07202
..
315f7d6
100644
(file)
--- a/
share/nitdoc/scripts/js-facilities.js
+++ b/
share/nitdoc/scripts/js-facilities.js
@@
-619,6
+619,15
@@
$(document).ready(function() {
reloadComment();
\r
});
\r
});
\r
+
\r
+ $("pre").hover(
\r
+ function () {
\r
+ $(this).css({'cursor' : 'hand'});
\r
+ },
\r
+ function () {
\r
+ $(this).css({'cursor' : 'pointer'});
\r
+ }
\r
+ );
\r
});
\r
\r
/* Parse current URL and return anchor name */
\r