mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-13 09:40:18 +01:00
Update edit.php
This commit is contained in:
parent
f144877ee1
commit
901c79edb2
@ -156,7 +156,7 @@ function database(button) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function controlli(button) {
|
function controlli(button) {
|
||||||
openModal("'.tr('Controlli del gestionale').'", "'.$module->fileurl('controlli.php').'?id_module='.$id_module.'");
|
openModal("'.tr('Controlli del gestionale').'", "'.$module->fileurl('controlli.php').'?id_module='.$id_module. '");
|
||||||
}
|
}
|
||||||
|
|
||||||
function search(button) {
|
function search(button) {
|
||||||
@ -171,9 +171,9 @@ function search(button) {
|
|||||||
},
|
},
|
||||||
success: function(data){
|
success: function(data){
|
||||||
if (data === "none" || !data) {
|
if (data === "none" || !data) {
|
||||||
$("#update-search").html("'.tr('Nessun aggiornamento disponibile').'.");
|
$("#update-search").html("<i class=\"fa fa-check-circle text-success\" aria-hidden=\"true\"></i> '.tr('Nessun aggiornamento disponibile'). '.");
|
||||||
} else {
|
} else {
|
||||||
let beta_warning = data.includes("beta") ? "<br><b class=\"text-danger\">'.tr('Attenzione: la versione individuata è in fase sperimentale, e pertanto può presentare diversi bug e malfunzionamenti').'.</b>" : "";
|
let beta_warning = data.includes("beta") ? "<br><i class=\"fa-exclamation-triangle text-danger\" aria-hidden=\"true\"></i> <b class=\"text-danger\">'.tr('Attenzione: la versione individuata è in fase sperimentale e potrebbe pertanto presentare diversi malfunzionamenti. Se ne sconsiglia l\'aggiornamento in installazioni di produzione').'.</b>" : "";
|
||||||
$("#update-search").html("'.tr("E' stato individuato un nuovo aggiornamento").': " + data + "." + beta_warning + "<br>'.tr('Scaricalo ora: _LINK_', [
|
$("#update-search").html("'.tr("E' stato individuato un nuovo aggiornamento").': " + data + "." + beta_warning + "<br>'.tr('Scaricalo ora: _LINK_', [
|
||||||
'_LINK_' => "<a target='_blank' href='https://github.com/devcode-it/openstamanager/releases'>https://github.com/devcode-it/openstamanager/releases</a>",
|
'_LINK_' => "<a target='_blank' href='https://github.com/devcode-it/openstamanager/releases'>https://github.com/devcode-it/openstamanager/releases</a>",
|
||||||
]).'");
|
]).'");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user