diff --git a/src/assets/js/wishlists.js b/src/assets/js/wishlists.js index d8ca799c..fe3dee7a 100644 --- a/src/assets/js/wishlists.js +++ b/src/assets/js/wishlists.js @@ -511,6 +511,17 @@ $(function () { var validateURL = true; function validateWishURL(formAddOrEdit, buttonAddOrSave, modalAddOrEdit) { + /** + * Validate Form + */ + formAddOrEdit + .form({ + fields: { + wish_price : ['number'], + } + }) + .form('validate form'); + /** * Validate URL */ diff --git a/src/pages/parts/wish-add.php b/src/pages/parts/wish-add.php index 3d420658..f58917f7 100644 --- a/src/pages/parts/wish-add.php +++ b/src/pages/parts/wish-add.php @@ -67,6 +67,17 @@ $scriptPart = '/src/assets/js/parts/wish-add.js'; +