jqgrid_utils 1.26.0 → 1.26.2
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.
- package/dist/jqgrid_utils.js +13 -5
- package/jqgrid_utils.js +13 -5
- package/package.json +1 -1
package/dist/jqgrid_utils.js
CHANGED
|
@@ -1249,9 +1249,16 @@ 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
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1252
|
+
{
|
|
1253
|
+
let key_val = '';
|
|
1254
|
+
if(cell_val)
|
|
1255
|
+
{
|
|
1256
|
+
key_val = cell_val;
|
|
1257
|
+
}
|
|
1258
|
+
let t = '';
|
|
1259
|
+
if(cell_val) {
|
|
1260
|
+
t = cell_val.toString();
|
|
1261
|
+
}
|
|
1255
1262
|
if (typeof keys === 'object')
|
|
1256
1263
|
{
|
|
1257
1264
|
let pref = '';
|
|
@@ -1282,18 +1289,19 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
|
|
|
1282
1289
|
pref = pref.slice(0, -1);
|
|
1283
1290
|
}
|
|
1284
1291
|
const _cell_val = self.__cell_format(cell_val, format);
|
|
1285
|
-
if(
|
|
1292
|
+
if(t !='')
|
|
1286
1293
|
{
|
|
1287
1294
|
cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
|
|
1288
1295
|
}
|
|
1289
1296
|
else
|
|
1290
1297
|
{
|
|
1298
|
+
|
|
1291
1299
|
cell_val = '';
|
|
1292
1300
|
}
|
|
1293
1301
|
}
|
|
1294
1302
|
|
|
1295
1303
|
}
|
|
1296
|
-
if(
|
|
1304
|
+
if(t)
|
|
1297
1305
|
{
|
|
1298
1306
|
return cell_val;
|
|
1299
1307
|
}
|
package/jqgrid_utils.js
CHANGED
|
@@ -1248,9 +1248,16 @@ 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
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1251
|
+
{
|
|
1252
|
+
let key_val = '';
|
|
1253
|
+
if(cell_val)
|
|
1254
|
+
{
|
|
1255
|
+
key_val = cell_val;
|
|
1256
|
+
}
|
|
1257
|
+
let t = '';
|
|
1258
|
+
if(cell_val) {
|
|
1259
|
+
t = cell_val.toString();
|
|
1260
|
+
}
|
|
1254
1261
|
if (typeof keys === 'object')
|
|
1255
1262
|
{
|
|
1256
1263
|
let pref = '';
|
|
@@ -1281,18 +1288,19 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
|
|
|
1281
1288
|
pref = pref.slice(0, -1);
|
|
1282
1289
|
}
|
|
1283
1290
|
const _cell_val = self.__cell_format(cell_val, format);
|
|
1284
|
-
if(
|
|
1291
|
+
if(t !='')
|
|
1285
1292
|
{
|
|
1286
1293
|
cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
|
|
1287
1294
|
}
|
|
1288
1295
|
else
|
|
1289
1296
|
{
|
|
1297
|
+
|
|
1290
1298
|
cell_val = '';
|
|
1291
1299
|
}
|
|
1292
1300
|
}
|
|
1293
1301
|
|
|
1294
1302
|
}
|
|
1295
|
-
if(
|
|
1303
|
+
if(t)
|
|
1296
1304
|
{
|
|
1297
1305
|
return cell_val;
|
|
1298
1306
|
}
|
package/package.json
CHANGED