Skip to content

Commit

Permalink
Using on/off instead of bind/unbind in import module
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Jun 16, 2016
1 parent f5b6504 commit 2d0c004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/grid.import.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $.extend($.jgrid,{
}
//saveAs(file, "jqGrid_dump.txt" );
url = URL.createObjectURL(file);
$("#link_save").attr("href",url).bind('click',function(){
$("#link_save").attr("href",url).on('click',function(){
$(this).remove();
});
}
Expand Down Expand Up @@ -202,7 +202,7 @@ $.extend($.jgrid,{
while(i<len) {
$(grid[0].rows[i].cells[expCol])
.find("div.treeclick")
.bind("click",function(e){
.on("click",function(e){
var target = e.target || e.srcElement,
ind2 =$.jgrid.stripPref(ret.idPrefix,$(target,grid[0].rows).closest("tr.jqgrow")[0].id),
pos = grid[0].p._index[ind2];
Expand All @@ -221,7 +221,7 @@ $.extend($.jgrid,{
$(grid[0].rows[i].cells[expCol])
.find("span.cell-wrapper")
.css("cursor","pointer")
.bind("click",function(e) {
.on("click",function(e) {
var target = e.target || e.srcElement,
ind2 =$.jgrid.stripPref(ret.idPrefix,$(target,grid[0].rows).closest("tr.jqgrow")[0].id),
pos = grid[0].p._index[ind2];
Expand Down

0 comments on commit 2d0c004

Please sign in to comment.