Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed scope of rp_ge variable to not to be corrupted when nested grid…

… corrupts parents settings. Thanks to vchekan
  • Loading branch information...
commit 9d958b7868d022fe6c1f14dda4df43d7d4f3557c 1 parent a3374d9
@tonytomov authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/grid.formedit.js
View
5 js/grid.formedit.js
@@ -8,7 +8,6 @@
* http://www.gnu.org/licenses/gpl-2.0.html
**/
/*global xmlJsonClass, jQuery, $ */
-var rp_ge = null;
$.jgrid.extend({
searchGrid : function (p) {
p = $.extend({
@@ -318,7 +317,7 @@ $.jgrid.extend({
serializeEditData : null,
viewPagerButtons : true
}, $.jgrid.edit, p || {});
- rp_ge = p;
+ var rp_ge = p;
return this.each(function(){
var $t = this;
if (!$t.grid || !rowid) { return; }
@@ -1438,7 +1437,7 @@ $.jgrid.extend({
serializeDelData : null,
useDataProxy : false
}, $.jgrid.del, p ||{});
- rp_ge = p;
+ var rp_ge = p;
return this.each(function(){
var $t = this;
if (!$t.grid ) { return; }
Please sign in to comment.
Something went wrong with that request. Please try again.