1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Tooltips: data-tooltip-position attribute option added to 'e-tip' selector.

This commit is contained in:
Cameron
2016-03-10 15:43:16 -08:00
parent 1b2db4683e
commit 51d59f83d9
2 changed files with 27 additions and 4 deletions

View File

@@ -851,8 +851,30 @@ $(document).ready(function()
// Tooltips for bbarea.
$(".bbcode_buttons, a.e-tip").tooltip({placement: 'top',opacity: 1.0, fade: true,html: true, container:'body'});
// Tooltips for bbarea.
$(".bbcode_buttons, a.e-tip").each(function() {
var tip = $(this).attr('title');
if(tip === undefined)
{
return;
}
var pos = $(this).attr('data-tooltip-position');
if(pos === undefined)
{
pos = 'top';
}
$(this).tooltip({opacity:1.0, fade:true, placement: pos, container: 'body'});
// $(this).css( 'cursor', 'pointer' )
});
// $(".bbcode_buttons, a.e-tip").tooltip({placement: 'top',opacity: 1.0, fade: true,html: true, container:'body'});
// $("a.e-tip").tipsy({gravity: 'w',opacity: 1.0, fade: true,html: true});
// var tabs = $('#tab-container').clone(true);
// $('#htmlEditor').append(tabs);