Skip to content

Commit

Permalink
Fix get subgridId in populatesubgrid when id contain special characters.
Browse files Browse the repository at this point in the history
See #1070
  • Loading branch information
tonytomov committed Aug 20, 2024
1 parent d1fc555 commit 86a8eb4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/grid.subgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ addSubGrid : function( pos, sind ) {
var tr = $(this).parent("tr")[0];
pID = ts.p.id;
_id = tr.id;
$r = $("#" + pID + "_" + _id + "_expandedContent");
$r = $("#" + $.jgrid.jqID( pID + "_" + _id + "_expandedContent" ) );
if($(this).hasClass("sgcollapsed")) {
bfsc = $(ts).triggerHandler("jqGridSubGridBeforeExpand", [pID + "_" + _id, _id]);
bfsc = (bfsc === false || bfsc === 'stop') ? false : true;
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.jqGrid.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* @license Guriddo jqGrid JS - v5.8.8 - 2024-08-05
* @license Guriddo jqGrid JS - v5.8.8 - 2024-08-20
* Copyright(c) 2008, Tony Tomov, [email protected]
*
* License: http://guriddo.net/?page_id=103334
Expand Down Expand Up @@ -18358,7 +18358,7 @@ addSubGrid : function( pos, sind ) {
var tr = $(this).parent("tr")[0];
pID = ts.p.id;
_id = tr.id;
$r = $("#" + pID + "_" + _id + "_expandedContent");
$r = $("#" + $.jgrid.jqID( pID + "_" + _id + "_expandedContent" ) );
if($(this).hasClass("sgcollapsed")) {
bfsc = $(ts).triggerHandler("jqGridSubGridBeforeExpand", [pID + "_" + _id, _id]);
bfsc = (bfsc === false || bfsc === 'stop') ? false : true;
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.jqGrid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.jqGrid.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/minified/grid.subgrid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86a8eb4

Please sign in to comment.