Hi. Does anyone know how to call jQuery before the rest of a function on a client script? I'm calling a sublist update, and whilst it runs I want to show an overlay to grey out the screen. I can get the overlay to work, however the jQuery to show it always executes after the rest of the code. The block is being called by a button in a UE, linked to a function in the client script.
j
jen
04/14/2021, 7:11 PM
You’re going to want to do something like this:
jen
04/14/2021, 7:11 PM
Copy code
jQuery('#overlay').show({complete: function() {
/* code that executes after the overlay appears */
});
s
Sam L
04/15/2021, 8:01 AM
Thanks Jen - that still does the same thing unfortunately. I have tried to wrap the sublist code in a async/await too and it still runs one before the other..
As an alternative, does anyone know how to include the ExtJS library on the new timesheet layout? I am guessing this is the "Gen2" UI and it doesnt seem to include it