mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
modal criar produto usado para editar produto tambem
This commit is contained in:
@@ -51,7 +51,12 @@ input, textarea {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
|
||||
* dialog {
|
||||
transform: scale(1);
|
||||
/* display: flexbox;
|
||||
max-width: 200;
|
||||
max-height: 400; */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,9 +21,10 @@ function editProduct(id) {
|
||||
preco = preco.replace('R$ ', '');
|
||||
preco = preco.replace(',', '.');
|
||||
productPrice.value = preco;
|
||||
// productDescription.value = document.getElementById('description-'+id).innerHTML;
|
||||
productDescription.value = document.getElementById('description-'+id).value;
|
||||
productqtd.value = document.getElementById('quantity-'+id).innerHTML;
|
||||
categorie.value = 2;
|
||||
console.log(document.getElementById('h-category-'+id).value)
|
||||
categorie.value = document.getElementById('h-category-'+id).value;
|
||||
|
||||
// const url = `/products/editProduct/${id}/`;
|
||||
// // window.location.href = url;
|
||||
|
||||
Reference in New Issue
Block a user