Changeset 1691

Show
Ignore:
Timestamp:
02/12/2007 06:38:07 PM (22 months ago)
Author:
wei
Message:

Fix TImageButton bug http://www.pradosoft.com/forum/index.php/topic,6938.new.html

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/framework/Web/UI/WebControls/TImageButton.php

    r1397 r1691  
    9090                if($this->getEnabled(true)) 
    9191                { 
    92                         if($this->canCauseValidation()) 
    93                         { 
    9492                                $writer->addAttribute('id',$this->getClientID()); 
    9593                                $this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.TImageButton',$this->getPostBackOptions()); 
    96                         } 
    9794                } 
    9895                else if($this->getEnabled()) // in this case, parent will not render 'disabled' 
     
    144141                        $this->_x=intval($values["{$uid}_x"]); 
    145142                        $this->_y=intval($values["{$uid}_y"]); 
    146                         $this->getPage()->setPostBackEventTarget($this); 
    147143                } 
    148144                return false;