Rimozione pulsante email in Utenti e permessi

This commit is contained in:
Thomas Zilio 2019-07-30 16:52:16 +02:00
parent 4d9d27e9da
commit a17511f745
1 changed files with 20 additions and 17 deletions

View File

@ -190,22 +190,25 @@ if ($record['editable'] == 1) {
echo '
<script>
$(document).ready(function(){
$("#save").addClass("hide");
});
$("li.active.header button.btn-primary").attr("data-href", $("a.pull-right").attr("data-href") );
$(document).ready(function(){
$("#save").addClass("hide");
function update_permissions(id, value){
$.get(
globals.rootdir + "/actions.php?id_module='.$id_module.'&id_record='.$id_record.'&op=update_permission&idmodulo=" + id + "&permesso=" + value,
function(data){
if(data == "ok"){
swal("'.tr('Salvataggio completato').'", "'.tr('Permessi aggiornati!').'", "success");
}
else{
swal("'.tr('Errore').'", "'.tr("Errore durante l'aggiornamento dei permessi!").'", "error");
}
$("#email-button").remove();
});
$("li.active.header button.btn-primary").attr("data-href", $("a.pull-right").attr("data-href") );
function update_permissions(id, value){
$.get(
globals.rootdir + "/actions.php?id_module='.$id_module.'&id_record='.$id_record.'&op=update_permission&idmodulo=" + id + "&permesso=" + value,
function(data){
if(data == "ok"){
swal("'.tr('Salvataggio completato').'", "'.tr('Permessi aggiornati!').'", "success");
}
);
}
else{
swal("'.tr('Errore').'", "'.tr("Errore durante l'aggiornamento dei permessi!").'", "error");
}
}
);
}
</script>';