jqgrid_utils 1.26.2 → 1.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1249,7 +1249,8 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1249
1249
  if (col_model[i]['name'] === edit_field)
1250
1250
  {
1251
1251
  col_model[i]['formatter'] = function(cell_val, obj)
1252
- {
1252
+ {
1253
+ cell_val = String(cell_val);
1253
1254
  let key_val = '';
1254
1255
  if(cell_val)
1255
1256
  {
@@ -1257,8 +1258,9 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1257
1258
  }
1258
1259
  let t = '';
1259
1260
  if(cell_val) {
1260
- t = cell_val.toString();
1261
+ t = cell_val.toString();
1261
1262
  }
1263
+
1262
1264
  if (typeof keys === 'object')
1263
1265
  {
1264
1266
  let pref = '';
@@ -1289,6 +1291,7 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1289
1291
  pref = pref.slice(0, -1);
1290
1292
  }
1291
1293
  const _cell_val = self.__cell_format(cell_val, format);
1294
+
1292
1295
  if(t !='')
1293
1296
  {
1294
1297
  cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
package/jqgrid_utils.js CHANGED
@@ -1248,7 +1248,8 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1248
1248
  if (col_model[i]['name'] === edit_field)
1249
1249
  {
1250
1250
  col_model[i]['formatter'] = function(cell_val, obj)
1251
- {
1251
+ {
1252
+ cell_val = String(cell_val);
1252
1253
  let key_val = '';
1253
1254
  if(cell_val)
1254
1255
  {
@@ -1256,8 +1257,9 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1256
1257
  }
1257
1258
  let t = '';
1258
1259
  if(cell_val) {
1259
- t = cell_val.toString();
1260
+ t = cell_val.toString();
1260
1261
  }
1262
+
1261
1263
  if (typeof keys === 'object')
1262
1264
  {
1263
1265
  let pref = '';
@@ -1288,6 +1290,7 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1288
1290
  pref = pref.slice(0, -1);
1289
1291
  }
1290
1292
  const _cell_val = self.__cell_format(cell_val, format);
1293
+
1291
1294
  if(t !='')
1292
1295
  {
1293
1296
  cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  {
30
30
  "test": "echo \"Error: no test specified\" && exit 1"
31
31
  },
32
- "version": "1.26.2"
32
+ "version": "1.26.3"
33
33
  }