Skip to content

Commit

Permalink
Fix sizingString Function to accept options from formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Tomov committed Sep 5, 2022
1 parent 65fd41e commit a00419f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/grid.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2579,9 +2579,9 @@ $.fn.jqGrid = function( pin ) {
},
formatter = function (rowId, cellval , colpos, rwdat, _act){
var cm = ts.p.colModel[colpos],v;
rowId = String(ts.p.idPrefix) !== "" ? $.jgrid.stripPref(ts.p.idPrefix, rowId) : rowId;
var opts= {rowId: rowId, colModel:cm, gid:ts.p.id, pos:colpos, styleUI: ts.p.styleUI };
if(cm.formatter !== undefined) {
rowId = String(ts.p.idPrefix) !== "" ? $.jgrid.stripPref(ts.p.idPrefix, rowId) : rowId;
var opts= {rowId: rowId, colModel:cm, gid:ts.p.id, pos:colpos, styleUI: ts.p.styleUI };
if($.jgrid.isFunction( cm.formatter ) ) {
v = cm.formatter.call(ts,cellval,opts,rwdat,_act);
} else if($.fmatter){
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.jqGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2574,9 +2574,9 @@ $.fn.jqGrid = function( pin ) {
},
formatter = function (rowId, cellval , colpos, rwdat, _act){
var cm = ts.p.colModel[colpos],v;
rowId = String(ts.p.idPrefix) !== "" ? $.jgrid.stripPref(ts.p.idPrefix, rowId) : rowId;
var opts= {rowId: rowId, colModel:cm, gid:ts.p.id, pos:colpos, styleUI: ts.p.styleUI };
if(cm.formatter !== undefined) {
rowId = String(ts.p.idPrefix) !== "" ? $.jgrid.stripPref(ts.p.idPrefix, rowId) : rowId;
var opts= {rowId: rowId, colModel:cm, gid:ts.p.id, pos:colpos, styleUI: ts.p.styleUI };
if($.jgrid.isFunction( cm.formatter ) ) {
v = cm.formatter.call(ts,cellval,opts,rwdat,_act);
} else if($.fmatter){
Expand Down
2 changes: 1 addition & 1 deletion 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.base.js

Large diffs are not rendered by default.

0 comments on commit a00419f

Please sign in to comment.