feat: update print button functionality to use onclick event for improved usability

This commit is contained in:
Naiel
2026-03-02 08:08:59 +00:00
parent d0593d3d46
commit 9d808ed63e
5 changed files with 5 additions and 9 deletions

View File

@@ -121,7 +121,7 @@ PAGES.comedor = {
<img src="static/exit.png" />
<br>Salir
</button>
<button class="opicon" id="${btn_print_chart}" style="float: right;"> <!-- Align to the right -->
<button class="opicon" onclick="window.print()" style="float: right;"> <!-- Align to the right -->
<img src="static/printer2.png" />
<br>Imprimir
</button>

View File

@@ -329,7 +329,7 @@ PAGES.materiales = {
<img src="static/exit.png" />
<br>Salir
</button>
<button class="opicon" id="${btn_print_chart}" style="float: right;"> <!-- Align to the right -->
<button class="opicon" onclick="window.print()" style="float: right;"> <!-- Align to the right -->
<img src="static/printer2.png" />
<br>Imprimir
</button>
@@ -405,10 +405,6 @@ PAGES.materiales = {
renderMovimientos();
};
document.getElementById(btn_print_chart).onclick = () => {
window.print();
};
document.getElementById(mov_modal_close).onclick = () => {
document.getElementById(mov_modal).style.display = 'none';
};

View File

@@ -60,7 +60,7 @@ PAGES.mensajes = {
<img src="static/exit.png" />
<br>Salir
</button>
<button class="opicon" id="${btn_print_chart}" style="float: right;"> <!-- Align to the right -->
<button class="opicon" onclick="window.print()" style="float: right;"> <!-- Align to the right -->
<img src="static/printer2.png" />
<br>Imprimir
</button>

View File

@@ -57,7 +57,7 @@ PAGES.notas = {
<img src="static/exit.png" />
<br>Salir
</button>
<button class="opicon" id="${btn_print_chart}" style="float: right;"> <!-- Align to the right -->
<button class="opicon" onclick="window.print()" style="float: right;"> <!-- Align to the right -->
<img src="static/printer2.png" />
<br>Imprimir
</button>

View File

@@ -88,7 +88,7 @@ PAGES.personas = {
<img src="static/exit.png" />
<br>Salir
</button>
<button class="opicon" id="${btn_print_chart}" style="float: right;"> <!-- Align to the right -->
<button class="opicon" onclick="window.print()" style="float: right;"> <!-- Align to the right -->
<img src="static/printer2.png" />
<br>Imprimir
</button>