Skip to content

Commit

Permalink
Added parameters - this, value and options in editoptions.value objec…
Browse files Browse the repository at this point in the history
…t when it is a function. See: #1049
  • Loading branch information
tonytomov committed Oct 30, 2023
1 parent 6de4812 commit be6d3a5
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 63 deletions.
4 changes: 3 additions & 1 deletion js/grid.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,9 @@ $.extend($.jgrid,{
ovm = vl.split(",");
ovm = $.map(ovm,function(n){return $.jgrid.trim(n);});
}
if(typeof options.value === 'function') { options.value = options.value(); }
if(typeof options.value === 'function') {
options.value = options.value.call($t, vl, options);
}
var so,sv, ov, oSv, key, value,
sep = options.separator === undefined ? ":" : options.separator,
delim = options.delimiter === undefined ? ";" : options.delimiter;
Expand Down
6 changes: 4 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.5 - 2023-10-23
* @license Guriddo jqGrid JS - v5.8.5 - 2023-10-30
* Copyright(c) 2008, Tony Tomov, [email protected]
*
* License: http://guriddo.net/?page_id=103334
Expand Down Expand Up @@ -9409,7 +9409,9 @@ $.extend($.jgrid,{
ovm = vl.split(",");
ovm = $.map(ovm,function(n){return $.jgrid.trim(n);});
}
if(typeof options.value === 'function') { options.value = options.value(); }
if(typeof options.value === 'function') {
options.value = options.value.call($t, vl, options);
}
var so,sv, ov, oSv, key, value,
sep = options.separator === undefined ? ":" : options.separator,
delim = options.delimiter === undefined ? ";" : options.delimiter;
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.

Loading

0 comments on commit be6d3a5

Please sign in to comment.