Changeset 1567 for branches/3.0

Show
Ignore:
Timestamp:
12/07/2006 09:45:58 AM (2 years ago)
Author:
xue
Message:

Fixed #481.

Location:
branches/3.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/HISTORY

    r1556 r1567  
     1Version 3.0.7  
     2=================== 
     3BUG: Ticket#481 - Unable to cancel navigation when handling OnSideBarButtonClickEvent (Qiang) 
     4 
    15Version 3.0.6 December 4, 2006 
    26============================== 
  • branches/3.0/framework/Web/UI/WebControls/TWizard.php

    r1397 r1567  
    174174         */ 
    175175        private $_sideBarDataList; 
     176        /** 
     177         * @var boolean whether navigation should be cancelled (a status set in OnSideBarButtonClick) 
     178         */ 
     179        private $_cancelNavigation=false; 
    176180 
    177181        /** 
     
    676680         * This event is raised when a finish navigation button is clicked in the 
    677681         * current active step. 
    678          * @param TEventParameter event parameter 
     682         * @param TWizardNavigationEventParameter event parameter 
    679683         */ 
    680684        public function onCompleteButtonClick($param) 
     
    689693         * This event is raised when a next navigation button is clicked in the 
    690694         * current active step. 
    691          * @param TEventParameter event parameter 
     695         * @param TWizardNavigationEventParameter event parameter 
    692696         */ 
    693697        public function onNextButtonClick($param) 
     
    700704         * This event is raised when a previous navigation button is clicked in the 
    701705         * current active step. 
    702          * @param TEventParameter event parameter 
     706         * @param TWizardNavigationEventParameter event parameter 
    703707         */ 
    704708        public function onPreviousButtonClick($param) 
     
    710714         * Raises <b>OnSideBarButtonClick</b> event. 
    711715         * This event is raised when a link button in the side bar is clicked. 
    712          * @param TEventParameter event parameter 
     716         * @param TWizardNavigationEventParameter event parameter 
    713717         */ 
    714718        public function onSideBarButtonClick($param) 
     
    11381142                        $this->_activeStepIndexSet=false; 
    11391143                        $this->onSideBarButtonClick($navParam); 
    1140                         if(!$navParam->getCancelNavigation()) 
     1144                        $this->_cancelNavigation=$navParam->getCancelNavigation(); 
     1145                        if(!$this->_cancelNavigation) 
    11411146                        { 
    11421147                                if(!$this->_activeStepIndexSet && $this->allowNavigationToStep($newStepIndex)) 
     
    13861391                        else if(strcasecmp($command,self::CMD_MOVETO)===0) 
    13871392                        { 
     1393                                if($this->_cancelNavigation)  // may be set in onSideBarButtonClick 
     1394                                        $navParam->setCancelNavigation(true); 
    13881395                                $navParam->setNextStepIndex(TPropertyValue::ensureInteger($param->getCommandParameter())); 
    13891396                                $handled=true;