feat: update print button functionality to use onclick event for improved usability
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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';
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user