Skip to content

Commit

Permalink
Restore hoverrows when destoy is called
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Dec 2, 2011
1 parent 536f53c commit ed578b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/grid.custom.js
Expand Up @@ -759,6 +759,18 @@ $.jgrid.extend({
$t.p.resizeStop = $t.p.orgEvents.resizeStop;
$t.p.onSortCol = $t.p.orgEvents.onSortCol;
$t.p.orgEvents = null;
if($t.p.hoverrows == true) {
var ptr;
$("#"+$.jgrid.jqID($t.p.id)).bind('mouseover',function(e) {
ptr = $(e.target).closest("tr.jqgrow");
if($(ptr).attr("class") !== "ui-subgrid") {
$(ptr).addClass("ui-state-hover");
}
}).bind('mouseout',function(e) {
ptr = $(e.target).closest("tr.jqgrow");
$(ptr).removeClass("ui-state-hover");
});
}
this.p.frozenColumns = false;
}
});
Expand Down

0 comments on commit ed578b9

Please sign in to comment.