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