Changeset 1567
- Timestamp:
- 12/07/2006 09:45:58 AM (2 years ago)
- Location:
- branches/3.0
- Files:
-
- 2 modified
-
HISTORY (modified) (1 diff)
-
framework/Web/UI/WebControls/TWizard.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/HISTORY
r1556 r1567 1 Version 3.0.7 2 =================== 3 BUG: Ticket#481 - Unable to cancel navigation when handling OnSideBarButtonClickEvent (Qiang) 4 1 5 Version 3.0.6 December 4, 2006 2 6 ============================== -
branches/3.0/framework/Web/UI/WebControls/TWizard.php
r1397 r1567 174 174 */ 175 175 private $_sideBarDataList; 176 /** 177 * @var boolean whether navigation should be cancelled (a status set in OnSideBarButtonClick) 178 */ 179 private $_cancelNavigation=false; 176 180 177 181 /** … … 676 680 * This event is raised when a finish navigation button is clicked in the 677 681 * current active step. 678 * @param T EventParameter event parameter682 * @param TWizardNavigationEventParameter event parameter 679 683 */ 680 684 public function onCompleteButtonClick($param) … … 689 693 * This event is raised when a next navigation button is clicked in the 690 694 * current active step. 691 * @param T EventParameter event parameter695 * @param TWizardNavigationEventParameter event parameter 692 696 */ 693 697 public function onNextButtonClick($param) … … 700 704 * This event is raised when a previous navigation button is clicked in the 701 705 * current active step. 702 * @param T EventParameter event parameter706 * @param TWizardNavigationEventParameter event parameter 703 707 */ 704 708 public function onPreviousButtonClick($param) … … 710 714 * Raises <b>OnSideBarButtonClick</b> event. 711 715 * This event is raised when a link button in the side bar is clicked. 712 * @param T EventParameter event parameter716 * @param TWizardNavigationEventParameter event parameter 713 717 */ 714 718 public function onSideBarButtonClick($param) … … 1138 1142 $this->_activeStepIndexSet=false; 1139 1143 $this->onSideBarButtonClick($navParam); 1140 if(!$navParam->getCancelNavigation()) 1144 $this->_cancelNavigation=$navParam->getCancelNavigation(); 1145 if(!$this->_cancelNavigation) 1141 1146 { 1142 1147 if(!$this->_activeStepIndexSet && $this->allowNavigationToStep($newStepIndex)) … … 1386 1391 else if(strcasecmp($command,self::CMD_MOVETO)===0) 1387 1392 { 1393 if($this->_cancelNavigation) // may be set in onSideBarButtonClick 1394 $navParam->setCancelNavigation(true); 1388 1395 $navParam->setNextStepIndex(TPropertyValue::ensureInteger($param->getCommandParameter())); 1389 1396 $handled=true;
