jqgrid_utils 1.1.3 → 1.1.4

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/README.md CHANGED
@@ -35,3 +35,22 @@ Discover All Functions:
35
35
  await gu.grid_set_captain(_grid, data);
36
36
  }
37
37
  ```
38
+
39
+ ## Functions:
40
+
41
+ ### add grid_load_complete to don't show the delete icon
42
+ ```javascript
43
+ loadComplete: async function(data)
44
+ {
45
+ jqu.s_hide_del_icon();
46
+ grid_load_complete;
47
+ },
48
+ ```
49
+
50
+ ```javascript
51
+ loadComplete: async function(data)
52
+ {
53
+ await jqu.hide_del_icon();
54
+ grid_load_complete;
55
+ },
56
+ ```
@@ -216,6 +216,16 @@ async put_json(url, data)
216
216
  }
217
217
 
218
218
 
219
+ s_hide_del_icon()
220
+ {
221
+ hide_del_icon();
222
+ }
223
+
224
+ async hide_del_icon()
225
+ {
226
+ jQuery('.ui-inline-del').each(function(index) {jQuery(this).html('');});
227
+ }
228
+
219
229
  };
220
230
 
221
231
 
package/jqgrid_utils.js CHANGED
@@ -215,6 +215,16 @@ async put_json(url, data)
215
215
  }
216
216
 
217
217
 
218
+ s_hide_del_icon()
219
+ {
220
+ hide_del_icon();
221
+ }
222
+
223
+ async hide_del_icon()
224
+ {
225
+ jQuery('.ui-inline-del').each(function(index) {jQuery(this).html('');});
226
+ }
227
+
218
228
  };
219
229
 
220
230
 
package/package.json CHANGED
@@ -28,5 +28,5 @@
28
28
  {
29
29
  "test": "echo \"Error: no test specified\" && exit 1"
30
30
  },
31
- "version": "1.1.3"
31
+ "version": "1.1.4"
32
32
  }