var callbackFunc = function(){ showSelect(this); <?php if (isset($levels[$i + 2])) { ?> loadNextSelectIfOneOption( '<?php echo str_replace(' ', '_', $levels[$i + 1]); ?> ', '<?php echo str_replace(' ', '_', $levels[$i + 2]); ?> ' ); <?php } if (shouldAutoSubmit() && isLastLevel($i, $c)) { ?> autoSubmit(); <?php } ?> decorateUnavailableSelections(); jQuery(this).trigger('vafLevelLoaded'); }; decorateUnavailableSelections(); var loadingText = '<option value="0"><?php echo htmlentities(addslashes($this->loadingText())); ?> </option>';
return true; } submitVafChooserForm = function() { jQuery('#vafChooserForm').trigger("vafChooserSubmit"); return true; } clearVafForm = function() { <?php /** Reset applicable paramaters */ $params = array(); for( $i = 0; $i < $c; $i++ ) { $params[ $levels[ $i ] ] = 0; } ?> window.location = '<?='?' . http_build_query( $params )?>'; } <?php if( shouldAutoSubmit( $levels ) ) { ?> jQuery( '.<?=$levels[$c - 1]?>Select').change( function() { autoSubmit(); } ); <?php }