jqgrid_utils 1.34.0 → 1.34.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.
- package/dist/jqgrid_utils.js +2 -1
- package/jqgrid_utils.js +2 -1
- package/package.json +3 -1
package/dist/jqgrid_utils.js
CHANGED
|
@@ -1553,6 +1553,7 @@ var jqu = new Jqgrid_utils();
|
|
|
1553
1553
|
*/
|
|
1554
1554
|
async set_styles(obj, style_column = "styles") {
|
|
1555
1555
|
const rows = jQuery(obj).jqGrid("getGridParam", "data");
|
|
1556
|
+
|
|
1556
1557
|
for (let i in rows) {
|
|
1557
1558
|
if (rows[i][style_column]) {
|
|
1558
1559
|
const styles = JSON.parse(rows[i][style_column]);
|
|
@@ -1560,7 +1561,7 @@ var jqu = new Jqgrid_utils();
|
|
|
1560
1561
|
const rowid = rows[i]["id"];
|
|
1561
1562
|
const name = ii;
|
|
1562
1563
|
if (rows[i].hasOwnProperty(name)) {
|
|
1563
|
-
jQuery(
|
|
1564
|
+
jQuery(obj).jqGrid("setCell", rowid, name, "", styles[ii]);
|
|
1564
1565
|
}
|
|
1565
1566
|
}
|
|
1566
1567
|
}
|
package/jqgrid_utils.js
CHANGED
|
@@ -1552,6 +1552,7 @@ var jqu = new Jqgrid_utils();
|
|
|
1552
1552
|
*/
|
|
1553
1553
|
async set_styles(obj, style_column = "styles") {
|
|
1554
1554
|
const rows = jQuery(obj).jqGrid("getGridParam", "data");
|
|
1555
|
+
|
|
1555
1556
|
for (let i in rows) {
|
|
1556
1557
|
if (rows[i][style_column]) {
|
|
1557
1558
|
const styles = JSON.parse(rows[i][style_column]);
|
|
@@ -1559,7 +1560,7 @@ var jqu = new Jqgrid_utils();
|
|
|
1559
1560
|
const rowid = rows[i]["id"];
|
|
1560
1561
|
const name = ii;
|
|
1561
1562
|
if (rows[i].hasOwnProperty(name)) {
|
|
1562
|
-
jQuery(
|
|
1563
|
+
jQuery(obj).jqGrid("setCell", rowid, name, "", styles[ii]);
|
|
1563
1564
|
}
|
|
1564
1565
|
}
|
|
1565
1566
|
}
|