diff options
author | wei <> | 2007-03-21 03:09:33 +0000 |
---|---|---|
committer | wei <> | 2007-03-21 03:09:33 +0000 |
commit | 8dbd201ad9a6945ba00a29c203b6c9c2c0e1ca53 (patch) | |
tree | 7efcef2992a3d6c50371f37c5561b65b113fdd86 /framework/Web/Javascripts/js | |
parent | 4d2d3e003b56b6cb42b9025e961de9713e48924c (diff) |
fixed TImageButton js problem
Diffstat (limited to 'framework/Web/Javascripts/js')
-rw-r--r-- | framework/Web/Javascripts/js/compressed/prado.js | 3 | ||||
-rw-r--r-- | framework/Web/Javascripts/js/debug/prado.js | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/framework/Web/Javascripts/js/compressed/prado.js b/framework/Web/Javascripts/js/compressed/prado.js index a095c52d..f338cb67 100644 --- a/framework/Web/Javascripts/js/compressed/prado.js +++ b/framework/Web/Javascripts/js/compressed/prado.js @@ -358,8 +358,7 @@ doPostBack=onclicked;} if(doPostBack) this.onPostBack(event,options);if(typeof(onclicked)=="boolean"&&!onclicked) Event.stop(event);},onPostBack:function(event,options) -{Prado.PostBack(event,options);}};Prado.WebUI.TButton=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TLinkButton=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TCheckBox=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TBulletedList=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TImageMap=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TImageButton=Class.extend(Prado.WebUI.PostBackControl);Object.extend(Prado.WebUI.TImageButton.prototype,{onInit:function(options) -{this.hasXYInput=false;},onPostBack:function(event,options) +{Prado.PostBack(event,options);}};Prado.WebUI.TButton=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TLinkButton=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TCheckBox=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TBulletedList=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TImageMap=Class.extend(Prado.WebUI.PostBackControl);Prado.WebUI.TImageButton=Class.extend(Prado.WebUI.PostBackControl);Object.extend(Prado.WebUI.TImageButton.prototype,{onPostBack:function(event,options) {if(!this.hasXYInput) {this.addXYInput(event,options);this.hasXYInput=true;} Prado.PostBack(event,options);},addXYInput:function(event,options) diff --git a/framework/Web/Javascripts/js/debug/prado.js b/framework/Web/Javascripts/js/debug/prado.js index aa319e02..41415d1f 100644 --- a/framework/Web/Javascripts/js/debug/prado.js +++ b/framework/Web/Javascripts/js/debug/prado.js @@ -3319,11 +3319,6 @@ Prado.WebUI.TImageMap = Class.extend(Prado.WebUI.PostBackControl); Prado.WebUI.TImageButton = Class.extend(Prado.WebUI.PostBackControl);
Object.extend(Prado.WebUI.TImageButton.prototype,
{
- onInit : function(options)
- {
- this.hasXYInput = false;
- },
-
/**
* Override parent onPostBack function, tried to add hidden forms
* inputs to capture x,y clicked point.
|