summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/prado
diff options
context:
space:
mode:
authorxue <>2006-01-21 22:40:16 +0000
committerxue <>2006-01-21 22:40:16 +0000
commitbe806c9cdb4b66738f51ac73ac432127049ad3e5 (patch)
tree0577c100fc91a6284fa39528dc67120e5320ecbf /framework/Web/Javascripts/prado
parent64d353d1680539fdf3c2d57150f3e93f9f45d84f (diff)
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r--framework/Web/Javascripts/prado/controls.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/prado/controls.js b/framework/Web/Javascripts/prado/controls.js
index edc00e7f..becff686 100644
--- a/framework/Web/Javascripts/prado/controls.js
+++ b/framework/Web/Javascripts/prado/controls.js
@@ -2,18 +2,18 @@ Prado.WebUI = Class.create();
//base postback-able controls
Prado.WebUI.PostBackControl = Class.create();
-Object.extend(Prado.WebUI.PostBackControl.prototype,
+Object.extend(Prado.WebUI.PostBackControl.prototype,
{
initialize : function(options)
{
this.element = $(options['ID']);
if(options['CausesValidation'] && Prado.Validation)
- Prado.Validation.AddTarget(options['ID'], options['ValidationGroup']);
-
+ Prado.Validation.AddTarget(options['ID'], options['ValidationGroup']);
+
//TODO: what do the following options do?
//options['PostBackUrl']
//options['ClientSubmit']
-
+
if(this.onInit)
this.onInit(options);
}
@@ -39,6 +39,7 @@ Prado.WebUI.ClickableComponent = Prado.WebUI.createPostBackComponent(
});
Prado.WebUI.TLinkButton = Prado.WebUI.ClickableComponent;
+Prado.WebUI.TImageButton = Prado.WebUI.ClickableComponent;
Prado.WebUI.TCheckBox = Prado.WebUI.ClickableComponent;
Prado.WebUI.TRadioButton = Prado.WebUI.ClickableComponent;
Prado.WebUI.TBulletedList = Prado.WebUI.ClickableComponent;