jqgrid_utils 1.5.2 → 1.5.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.
@@ -728,15 +728,19 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
728
728
  {
729
729
  pref = pref.slice(0, -1);
730
730
  }
731
-
732
- const _cell_val = self.__cell_format(cell_val, format);
733
-
734
- cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
731
+ const _cell_val = self.__cell_format(cell_val, format);
732
+ cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
735
733
  }
736
734
 
737
735
  }
738
-
739
- return cell_val;
736
+ if(cell_val)
737
+ {
738
+ return cell_val;
739
+ }
740
+ else
741
+ {
742
+ return '';
743
+ }
740
744
  };
741
745
  }
742
746
 
package/jqgrid_utils.js CHANGED
@@ -727,15 +727,19 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
727
727
  {
728
728
  pref = pref.slice(0, -1);
729
729
  }
730
-
731
- const _cell_val = self.__cell_format(cell_val, format);
732
-
733
- cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
730
+ const _cell_val = self.__cell_format(cell_val, format);
731
+ cell_val = '<a ' + attr + 'href="' + url + pref + '"> ' + _cell_val + '</a>';
734
732
  }
735
733
 
736
734
  }
737
-
738
- return cell_val;
735
+ if(cell_val)
736
+ {
737
+ return cell_val;
738
+ }
739
+ else
740
+ {
741
+ return '';
742
+ }
739
743
  };
740
744
  }
741
745
 
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.5.2"
32
+ "version": "1.5.3"
33
33
  }