diff options
author | xue <> | 2006-01-21 22:40:16 +0000 |
---|---|---|
committer | xue <> | 2006-01-21 22:40:16 +0000 |
commit | be806c9cdb4b66738f51ac73ac432127049ad3e5 (patch) | |
tree | 0577c100fc91a6284fa39528dc67120e5320ecbf | |
parent | 64d353d1680539fdf3c2d57150f3e93f9f45d84f (diff) |
-rw-r--r-- | framework/Web/Javascripts/js/logger.js | 5 | ||||
-rw-r--r-- | framework/Web/Javascripts/js/prado.js | 1 | ||||
-rw-r--r-- | framework/Web/Javascripts/prado/controls.js | 9 |
3 files changed, 9 insertions, 6 deletions
diff --git a/framework/Web/Javascripts/js/logger.js b/framework/Web/Javascripts/js/logger.js index 46233a50..afb4fd3b 100644 --- a/framework/Web/Javascripts/js/logger.js +++ b/framework/Web/Javascripts/js/logger.js @@ -479,7 +479,7 @@ if(this.d.getElementById("so_mContainer")){ this.d.body.removeChild(this.d.getElementById("so_mContainer")); this.d.body.removeChild(this.d.getElementById("so_mStyle")); if(typeof Event!="undefined"){ -Event.stopObserving(this.d,"keydown",this.handleKeyEvent.bind(this)); +Event.stopObserving(this.d,"keydown",this.dKeyDownEvent); } this.types=new Array(); this.objs=new Array(); @@ -496,8 +496,9 @@ sObj=this.d.body.appendChild(this.d.createElement("style")); sObj.id="so_mStyle"; sObj.type="text/css"; sObj.innerHTML=this.style; +this.dKeyDownEvent=this.handleKeyEvent.bind(this); if(typeof Event!="undefined"){ -Event.observe(this.d,"keydown",this.handleKeyEvent.bind(this)); +Event.observe(this.d,"keydown",this.dKeyDownEvent); } this.parseJS(obj); this.buildTree(); diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js index 92224d76..ef28bcd6 100644 --- a/framework/Web/Javascripts/js/prado.js +++ b/framework/Web/Javascripts/js/prado.js @@ -2411,6 +2411,7 @@ Prado.WebUI.ClickableComponent=Prado.WebUI.createPostBackComponent({onInit:funct Event.observe(this.element,"click",Prado.PostBack.bindEvent(this,_4)); }}); 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; 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;
|