Expand All Days (Events)

Complex events often have multiple days, tracks or categories with multiple functions/options; by default the first day is expanded, the rest are contracted and you have to click on the little arrow to expand the day (it's an accordion effect).

While you can choose to display the information by day, track or category, it displays in the accordion format. And if you choose "View All" you lose the headers.

(It's possible there's a setting to expand them all by default but I've never been able to figure it out.)

The default probably looks something like:

And the intent would be to get it to look something like:

All we need to do is trigger the attached "click", the same one that is fired when you mouse-click the arrow image. Loop through all the down arrows with an ID ending with _CollapseImage and trigger the "click". Don't do the first one as it's expanded by default.

<script>
	function pageLoad() { 
		jQuery(document).ready(function(){
			jQuery.each(jQuery("[id$='_CollapseImage']"), function(key, value) {
				if (key > 0) {
					jQuery(value)[0].click();
				}
			});
		});
	}
</script>

Not guaranteed to work on all versions of iMIS/RiSE and there may be an option to do it as a part of the product.


back
Categories
2459 Bridge Road
Oakville, ON
L6L 2G9
Canada
jake@k2andyou.com
support@k2andyou.zendesk.com
Office: (905) 901-3625
Mobile: (289) 795-3538