diff options
author | wei <> | 2007-03-25 07:04:08 +0000 |
---|---|---|
committer | wei <> | 2007-03-25 07:04:08 +0000 |
commit | c9c31d6edb91e22c56ffab3772ce8a29b1480537 (patch) | |
tree | a592860494b2ffd00fd1b6405e86388acbdcf1b5 /framework/Web/UI | |
parent | 2cdb60e09eb972200cead6414e7aef32ef1432e0 (diff) |
Update TinyMCE to 2.1, Js prototype to 1.5.1rc, effects to 1.7
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/WebControls/THtmlArea.php | 3 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index f70f8d25..91f0f033 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -85,6 +85,7 @@ class THtmlArea extends TTextBox 'ar' => 'ar',
'ca' => 'ca',
'cs' => 'cs',
+ 'cy' => 'cy', //available since 3.0.7
'da' => 'da',
'de' => 'de',
'el' => 'el',
@@ -118,7 +119,7 @@ class THtmlArea extends TTextBox 'vi' => 'vi',
'zh' => 'zh_cn_utf8',
'zh_CN' => 'zh_cn_utf8',
- 'zh_HK' => 'zh_tw_utf8',
+ //'zh_HK' => 'zh_tw_utf8', removed from 3.0.7
'zh_TW' => 'zh_tw_utf8'
);
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index bd974c64..156c328d 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -89,8 +89,11 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven $writer->addAttribute('name',$uniqueID);
if($this->getEnabled(true))
{
+ if($this->canCauseValidation())
+ {
$writer->addAttribute('id',$this->getClientID());
$this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.TImageButton',$this->getPostBackOptions());
+ }
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
$writer->addAttribute('disabled','disabled');
@@ -140,6 +143,8 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven {
$this->_x=intval($values["{$uid}_x"]);
$this->_y=intval($values["{$uid}_y"]);
+ if($this->getPage()->getPostBackEventTarget()===null)
+ $this->getPage()->setPostBackEventTarget($this);
}
return false;
}
|