wire/modules/Process/ProcessPageList/ProcessPageList.js
/**
			 * Recursively adjust total/descendants number up the tree by given amount (n)
			 * 
			 */
Recursively adjust total/descendants number up the tree by given amount (n)
Recursively adjust total / descendants number up the tree by given amount ( n )
function adjustNumTotal($item, n) {
				var numTotal = getNumTotal($item);
				numTotal += n;
				if(numTotal < 0) numTotal = 0;
				setNumTotal($item, numTotal);
				var $parentItem = $item.closest('.PageList').prev('.PageListItem');
				if($parentItem.length) adjustNumTotal($parentItem, n);
			}
function adjustNumTotal ( $item , n ) { var numTotal = getNumTotal ( $item ) ; numTotal += n ; if ( numTotal < 0 ) numTotal = 0 ; setNumTotal ( $item , numTotal ) ; var $parentItem = $item . closest ( '.PageList' ) . prev ( '.PageListItem' ) ; if ( $parentItem . length ) adjustNumTotal ( $parentItem , n ) ; }
Recursively adjust total/descendants number up the tree by given amount (n)
Recursively adjust total / descendants number up the tree by given amount ( n )