mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
form create product | add product in comanda
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
function openModal() {
|
||||
document.getElementById('myModal').style.display = 'block';
|
||||
document.getElementById('Modal-create-product').style.display = 'block';
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById('myModal').style.display = 'none';
|
||||
document.getElementById('Modal-create-product').style.display = 'none';
|
||||
}
|
||||
|
||||
document.getElementById('openModal').addEventListener('click', openModal);
|
||||
|
||||
document.getElementById('productForm').addEventListener('submit', function(event) {
|
||||
event.preventDefault();
|
||||
// document.getElementById('productForm').addEventListener('submit', function(event) {
|
||||
// event.preventDefault();
|
||||
|
||||
// const productName = document.getElementById('productName').value;
|
||||
// const productPrice = document.getElementById('productPrice').value;
|
||||
// const productDescription = document.getElementById('productDescription').value;
|
||||
|
||||
// closeModal();
|
||||
});
|
||||
// }
|
||||
// );
|
||||
|
||||
Reference in New Issue
Block a user