From 3ab7d1e4e9c070177b0d8edd82bd5b3ba1abb206 Mon Sep 17 00:00:00 2001 From: SEBASTIAN JN Date: Wed, 14 Aug 2024 09:20:02 -0300 Subject: [PATCH] update cdn/js/functions.js --- cdn/js/functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cdn/js/functions.js b/cdn/js/functions.js index fd340dd..287babf 100644 --- a/cdn/js/functions.js +++ b/cdn/js/functions.js @@ -1,6 +1,7 @@ const api = 'http://129.148.43.196:8080'; -const $form_buy = [ + // validacção do formulário de compra de itens + const $form_buy = [ { id: ".buy #id", condition: [ @@ -79,6 +80,7 @@ const $form_buy = [ ] }, ]; + function $message(text) { $('#message').html(''); @@ -99,6 +101,7 @@ function $message(text) { informação: ${text}`); }; + function $validate(form, btn, bot) { $(btn).addClass('disabled');