mirror of
https://github.com/friendica/friendica
synced 2025-04-23 10:30:11 +00:00
Add tipTip js tooltips
This commit is contained in:
parent
9ab9c28b01
commit
14125ce67b
5 changed files with 175 additions and 2 deletions
11
js/main.js
11
js/main.js
|
@ -34,7 +34,16 @@
|
|||
|
||||
msie = $.browser.msie ;
|
||||
|
||||
/* setup navbar menus */
|
||||
/* setup tooltips */
|
||||
$("a,.tt").each(function(){
|
||||
var e = $(this);
|
||||
var pos="bottom";
|
||||
if (e.hasClass("tttop")) pos="top";
|
||||
if (e.hasClass("ttbottom")) pos="bottom";
|
||||
if (e.hasClass("ttleft")) pos="left";
|
||||
if (e.hasClass("ttright")) pos="right";
|
||||
e.tipTip({defaultPosition: pos});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue