|
@@ -55,6 +55,7 @@ var configuratorApp = (function(){
|
55
|
55
|
boards_file = 'boards.h',
|
56
|
56
|
config_file = 'Configuration.h',
|
57
|
57
|
config_adv_file = 'Configuration_adv.h',
|
|
58
|
+ $tooltip = $('#tooltip'),
|
58
|
59
|
$config = $('#config_text'),
|
59
|
60
|
$config_adv = $('#config_adv_text'),
|
60
|
61
|
boards_list = {},
|
|
@@ -360,14 +361,13 @@ var configuratorApp = (function(){
|
360
|
361
|
|
361
|
362
|
if (inf.comment) {
|
362
|
363
|
var $tipme = $elm.prev('label');
|
363
|
|
- if (inf.comment && $tipme.length) {
|
364
|
|
- var $tt = $('#tooltip');
|
|
364
|
+ if ($tipme.length) {
|
365
|
365
|
$tipme.hover(
|
366
|
366
|
function() {
|
367
|
|
- var offs = $tipme.offset();
|
368
|
|
- $tt.text(inf.comment)
|
|
367
|
+ var pos = $tipme.position();
|
|
368
|
+ $tooltip.text(inf.comment)
|
369
|
369
|
.append('<span>')
|
370
|
|
- .css({bottom:($tt.parent().height()-offs.top+20)+'px',left:(offs.left+70)+'px'})
|
|
370
|
+ .css({bottom:($tooltip.parent().outerHeight()-pos.top)+'px',left:(pos.left+70)+'px'})
|
371
|
371
|
.show();
|
372
|
372
|
if (hover_timer) {
|
373
|
373
|
clearTimeout(hover_timer);
|
|
@@ -377,7 +377,7 @@ var configuratorApp = (function(){
|
377
|
377
|
function() {
|
378
|
378
|
hover_timer = setTimeout(function(){
|
379
|
379
|
hover_timer = null;
|
380
|
|
- $tt.fadeOut(400);
|
|
380
|
+ $tooltip.fadeOut(400);
|
381
|
381
|
}, 400);
|
382
|
382
|
}
|
383
|
383
|
);
|