Show/hide column: fix bug - hint is still shown when we can't toggle column visibility (i.e., when there is only 1 column available)

This commit is contained in:
Aris Feryanto 2011-07-08 15:22:27 +08:00
parent c97ef9d53c
commit dbf06b6a1b

View File

@ -749,15 +749,17 @@
g.showHint(e);
});
}
$(t).find('th:not(.draggable)')
.mouseenter(function(e) {
g.showColVisibHint = true;
g.showHint(e);
})
.mouseleave(function(e) {
g.showColVisibHint = false;
g.showHint(e);
});
if ($firstRowCols.length > 1) {
$(t).find('th:not(.draggable)')
.mouseenter(function(e) {
g.showColVisibHint = true;
g.showHint(e);
})
.mouseleave(function(e) {
g.showColVisibHint = false;
g.showHint(e);
});
}
$(t).find('th.draggable a')
.attr('title', '') // hide default tooltip for sorting
.mouseenter(function(e) {