Nicholas Williams
03/06/2023, 5:40 PMNathan L
03/06/2023, 5:44 PMNicholas Williams
03/06/2023, 5:45 PMNathan L
03/06/2023, 5:47 PMjQuery("#_loading_dialog").attr("title", "Please Wait");
jQuery("#_loading_dialog").html(
`<div style="text-align: center; font-style: italic;">Updating Purchase Orders. Please wait.</div>
<br><br>
<div style="text-align: center; width:100%;">
<i class="fas fa-cog fa-spin" data-fa-transform="grow-18"></i>
</div>`
);
jQuery("#_loading_dialog").dialog({
modal: true,
width: 400,
height: 160,
resizable: false,
closeOnEscape: false,
position: { my: "top", at: "top+160", of: "#main_form" },
open: function (evt, ui) {
jQuery(".ui-dialog-titlebar-close").hide();
setTimeout(function () {
runAutomation(soId, entity);
}, 100);
},
});
Theres a function it calls "runAutomation" that contains the code for what the script is doing.Nathan L
03/06/2023, 5:48 PMNicholas Williams
03/06/2023, 5:49 PMNicholas Williams
03/06/2023, 5:49 PMNathan L
03/06/2023, 5:51 PMvar options = {
title: 'My Dialog',
message: 'This is a message in my dialog.',
buttons: []
};
dialog.create(options).show();
creece
03/06/2023, 7:46 PMfirebone
03/07/2023, 12:04 AMmichoel
03/07/2023, 5:01 AMfirebone
03/08/2023, 3:25 AM