jqgrid_utils 1.26.0 → 1.26.1

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.
@@ -1251,7 +1251,7 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1251
1251
  col_model[i]['formatter'] = function(cell_val, obj)
1252
1252
  {
1253
1253
  let key_val = cell_val;
1254
-
1254
+ const t = cell_val.toString();
1255
1255
  if (typeof keys === 'object')
1256
1256
  {
1257
1257
  let pref = '';
@@ -1282,18 +1282,19 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1282
1282
  pref = pref.slice(0, -1);
1283
1283
  }
1284
1284
  const _cell_val = self.__cell_format(cell_val, format);
1285
- if(cell_val)
1285
+ if(t !='')
1286
1286
  {
1287
1287
  cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
1288
1288
  }
1289
1289
  else
1290
1290
  {
1291
+
1291
1292
  cell_val = '';
1292
1293
  }
1293
1294
  }
1294
1295
 
1295
1296
  }
1296
- if(cell_val)
1297
+ if(t)
1297
1298
  {
1298
1299
  return cell_val;
1299
1300
  }
package/jqgrid_utils.js CHANGED
@@ -1250,7 +1250,7 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1250
1250
  col_model[i]['formatter'] = function(cell_val, obj)
1251
1251
  {
1252
1252
  let key_val = cell_val;
1253
-
1253
+ const t = cell_val.toString();
1254
1254
  if (typeof keys === 'object')
1255
1255
  {
1256
1256
  let pref = '';
@@ -1281,18 +1281,19 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
1281
1281
  pref = pref.slice(0, -1);
1282
1282
  }
1283
1283
  const _cell_val = self.__cell_format(cell_val, format);
1284
- if(cell_val)
1284
+ if(t !='')
1285
1285
  {
1286
1286
  cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
1287
1287
  }
1288
1288
  else
1289
1289
  {
1290
+
1290
1291
  cell_val = '';
1291
1292
  }
1292
1293
  }
1293
1294
 
1294
1295
  }
1295
- if(cell_val)
1296
+ if(t)
1296
1297
  {
1297
1298
  return cell_val;
1298
1299
  }
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.0"
32
+ "version": "1.26.1"
33
33
  }