Hi. Does anyone know how to call jQuery before the...
# suitescript
s
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
You’re going to want to do something like this:
Copy code
jQuery('#overlay').show({complete: function() {
			
	/* code that executes after the overlay appears */

});
s
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