Skip to content
Browse files

Fix delRowData in case of multiselect se to true. Thanks to Oleg

  • Loading branch information...
1 parent dad7ec6 commit dd452fa490bcf6437955b63b1188b4d15f2cb828 @tonytomov committed Nov 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/grid.base.js
View
6 js/grid.base.js
@@ -2837,7 +2837,11 @@ $.jgrid.extend({
ia = $.inArray(rowid,$t.p.selarrrow);
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') {
var id = $.jgrid.stripPref($t.p.idPrefix, rowid),

0 comments on commit dd452fa

Please sign in to comment.
Something went wrong with that request. Please try again.