@osimatic/helpers-js 1.0.86 → 1.0.87

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.
Files changed (2) hide show
  1. package/form_helper.js +4 -0
  2. package/package.json +1 -1
package/form_helper.js CHANGED
@@ -202,6 +202,10 @@ class FormHelper {
202
202
  form.find('input[type="password"]').wrap('<div class="input-group password"></div>').after(linkTogglePassword);
203
203
  }
204
204
 
205
+ static hideField(inputOrSelect) {
206
+ inputOrSelect.closest('.form-group').addClass('hide');
207
+ }
208
+
205
209
  // ------------------------------------------------------------
206
210
  // Messages erreur
207
211
  // ------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"