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:
parent
05839837cc
commit
b6e7530af8
@ -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();
|
||||||
|
|
||||||
|
@ -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>';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user