Skip to content

Commit

Permalink
improve dataframe UI #2836. onKey action was added
Browse files Browse the repository at this point in the history
  • Loading branch information
mnavasiolava committed Jan 29, 2016
1 parent 6dab262 commit 7f58112
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@
$(window).unbind('resize.' + scope.id);
$('#' + scope.id + ' tbody').off('click');
scope.removeOnKeyListeners();
$('#' + scope.id + ' tbody').off('mouseleave.bko-datatable');
$('#' + scope.id + ' tbody').off('mouseenter.bko-datatable');
$('#' + scope.id).html('');
scope.table.destroy();
delete scope.table;
Expand Down Expand Up @@ -1228,7 +1230,7 @@

scope.removeOnKeyListeners();
$(id + ' tbody')
.on("mouseenter.action", 'td', function (e) {
.on("mouseenter.bko-datatable", 'td', function (e) {
var cellPos = scope.table.cell(this).index();
if(cellPos) {
var column = cellPos.column;
Expand All @@ -1238,7 +1240,7 @@
$(document).on("keydown.bko-datatable", scope.onKeyListeners[column]);
}
})
.on("mouseleave.action", 'td', function (e) {
.on("mouseleave.bko-datatable", 'td', function (e) {
var cellPos = scope.table.cell(this).index();
if(cellPos) {
var listener = scope.onKeyListeners[cellPos.column];
Expand Down

0 comments on commit 7f58112

Please sign in to comment.