Creazione di un dialog
Versione del 10 mag 2020 alle 20:23 di Andrea (discussione | contributi) (→Implementazione in Minerva-apps)
$( '#<?= $dialog_document ?>' ).dialog({
modal: true,
width: window.innerWidth / 2,
buttons: [ {
text: "<?= __( 'Cancel' ) ?>",
icons: { primary: "ui-icon-closethick" },
click: function() {
dialog_destroy( $(this) );
return false;
}
}, {
text: "<?= __( 'Submit' ) ?>",
icons: { primary: "ui-icon-check" },
click: function() {
dialog_destroy( $(this) );
return false;
}
} ],
close: function() {
dialog_destroy( $(this) );
return false;
}
});