1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-17 03:51:06 +01:00

Fix funzione JS per Allegati

This commit is contained in:
Dasc3er 2021-08-06 12:29:51 +02:00
parent 05839837cc
commit b6e7530af8
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ function modificaAllegato(button) {
* Funzione per gestire il download di un allegato. * Funzione per gestire il download di un allegato.
* @param button * @param button
*/ */
function aggiungiAllegato(button) { function scaricaAllegato(button) {
const gestione = $(button).closest(".gestione-allegati"); const gestione = $(button).closest(".gestione-allegati");
const allegato = $(button).closest("tr").data(); const allegato = $(button).closest("tr").data();

View File

@ -147,7 +147,7 @@ class FileManager implements ManagerInterface
<td>'.timestampFormat($file['created_at']).'</td> <td>'.timestampFormat($file['created_at']).'</td>
<td class="text-center"> <td class="text-center">
<button type="button" class="btn btn-xs btn-primary" onclick="aggiungiAllegato(this)"> <button type="button" class="btn btn-xs btn-primary" onclick="scaricaAllegato(this)">
<i class="fa fa-download"></i> <i class="fa fa-download"></i>
</button>'; </button>';