Skip to content

Commit

Permalink
Fix for the last fix - i.e should disabble prevous (-1)/nex (+1) row …
Browse files Browse the repository at this point in the history
…selection
  • Loading branch information
tonytomov committed Aug 3, 2012
1 parent f963f93 commit e42d113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/grid.formedit.js
Expand Up @@ -1161,7 +1161,7 @@ $.jgrid.extend({
nposret = p.onclickPgButtons.call($t, 'next',$("#"+frmgr),npos[1][npos[0]]);
if( nposret !== undefined && nposret === false ) {return false;}
}
if( $("#"+$.jgrid.jqID(npos[1][npos[0]])).hasClass('ui-state-disabled')) {return false;}
if( $("#"+$.jgrid.jqID(npos[1][npos[0]+1])).hasClass('ui-state-disabled')) {return false;}
fillData(npos[1][npos[0]+1],$t,frmgr);
$($t).jqGrid("setSelection",npos[1][npos[0]+1]);
$($t).triggerHandler("jqGridAddEditAfterClickPgButtons", ['next',$("#"+frmgr),npos[1][npos[0]]]);
Expand All @@ -1183,7 +1183,7 @@ $.jgrid.extend({
pposret = p.onclickPgButtons.call($t, 'prev',$("#"+frmgr),ppos[1][ppos[0]]);
if( pposret !== undefined && pposret === false ) {return false;}
}
if( $("#"+$.jgrid.jqID(ppos[1][ppos[0]])).hasClass('ui-state-disabled')) {return false;}
if( $("#"+$.jgrid.jqID(ppos[1][ppos[0]-1])).hasClass('ui-state-disabled')) {return false;}
fillData(ppos[1][ppos[0]-1],$t,frmgr);
$($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
$($t).triggerHandler("jqGridAddEditAfterClickPgButtons", ['prev',$("#"+frmgr),ppos[1][ppos[0]]]);
Expand Down

0 comments on commit e42d113

Please sign in to comment.