wire/modules/Process/ProcessPageList/ProcessPageList.js
/**
			 * Event called when a page label is clicked on
			 *
			 * @param event e
			 *
			 */
Event called when a page label is clicked on
@param event e
Event called when a page label is clicked on @param event e
function clickChild(e) {
				var $t = $(this); 
				var $li = $t.parent('.PageListItem'); 
				var id = $li.data('pageId');
				if(ignoreClicks && !$li.hasClass("PageListTriggerOpen")) return false; 
				if($root.is(".PageListSorting") || $root.is(".PageListSortSaving")) {
					return false; 
				}
				if($li.hasClass("PageListItemOpen")) {
					var collapseThis = true;
					if($li.hasClass('PageListID1') && !$li.hasClass('PageListForceReload') && options.mode != 'select') {
						var $collapseItems = $(this).closest('.PageListRoot').find('.PageListItemOpen:not(.PageListID1)');
						if($collapseItems.length) {
							$root.find('.PageListItemOpen:not(.PageListID1)').each(function() {
								$(this).children('a.PageListPage').click();
							});
							collapseThis = false;
						}
					}
					if(collapseThis) {	
						$li.removeClass('PageListItemOpen').next(".PageList").slideUp(options.speed, function() {
							$(this).remove();
						});
					}
				} else {
					$li.addClass('PageListItemOpen');
					var numChildren = getNumChildren($li); 
					if(numChildren > 0 || $li.hasClass('PageListForceReload')) {
						ignoreClicks = true; 
						var start = getOpenPageStart(id);
						loadChildren(id, $li, start, false); 
					}
				}
				if(options.mode != 'select') {
					setTimeout(function() { updateOpenPageIDs() }, 250); 
				}
				return false;
			}
function clickChild ( e ) { var $t = $ ( this ) ; var $li = $t . parent ( '.PageListItem' ) ; var id = $li . data ( 'pageId' ) ; if ( ignoreClicks && ! $li . hasClass ( "PageListTriggerOpen" ) ) return false ; if ( $root . is ( ".PageListSorting" ) || $root . is ( ".PageListSortSaving" ) ) { return false ; } if ( $li . hasClass ( "PageListItemOpen" ) ) { var collapseThis = true ; if ( $li . hasClass ( 'PageListID1' ) && ! $li . hasClass ( 'PageListForceReload' ) && options . mode != 'select' ) { var $collapseItems = $ ( this ) . closest ( '.PageListRoot' ) . find ( '.PageListItemOpen:not(.PageListID1)' ) ; if ( $collapseItems . length ) { $root . find ( '.PageListItemOpen:not(.PageListID1)' ) . each ( function ( ) { $ ( this ) . children ( 'a.PageListPage' ) . click ( ) ; } ) ; collapseThis = false ; } } if ( collapseThis ) { $li . removeClass ( 'PageListItemOpen' ) . next ( ".PageList" ) . slideUp ( options . speed , function ( ) { $ ( this ) . remove ( ) ; } ) ; } } else { $li . addClass ( 'PageListItemOpen' ) ; var numChildren = getNumChildren ( $li ) ; if ( numChildren > 0 || $li . hasClass ( 'PageListForceReload' ) ) { ignoreClicks = true ; var start = getOpenPageStart ( id ) ; loadChildren ( id , $li , start , false ) ; } } if ( options . mode != 'select' ) { setTimeout ( function ( ) { updateOpenPageIDs ( ) } , 250 ) ; } return false ; }
Event called when a page label is clicked on
 @param event e
Event called when a page label is clicked on @param event e
// collapse all open items, except homepage, when homepage link is collapsed