Skip to content

Commit

Permalink
Fix delRowData in case of multiselect se to true. Thanks to Oleg
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Nov 8, 2012
1 parent dad7ec6 commit dd452fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/grid.base.js
Expand Up @@ -2837,7 +2837,11 @@ $.jgrid.extend({
ia = $.inArray(rowid,$t.p.selarrrow); ia = $.inArray(rowid,$t.p.selarrrow);
if(ia != -1) { $t.p.selarrrow.splice(ia,1);} if(ia != -1) { $t.p.selarrrow.splice(ia,1);}
} }
if(rowid == $t.p.selrow) {$t.p.selrow=null;} if ($t.p.multiselect && $t.p.selarrrow.length > 0) {
$t.p.selrow = $t.p.selarrrow[$t.p.selarrrow.length-1];
} else {
$t.p.selrow = null;
}
} }
if($t.p.datatype == 'local') { if($t.p.datatype == 'local') {
var id = $.jgrid.stripPref($t.p.idPrefix, rowid), var id = $.jgrid.stripPref($t.p.idPrefix, rowid),
Expand Down

0 comments on commit dd452fa

Please sign in to comment.