From 8dbd201ad9a6945ba00a29c203b6c9c2c0e1ca53 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 21 Mar 2007 03:09:33 +0000 Subject: fixed TImageButton js problem --- framework/Web/Javascripts/js/compressed/prado.js | 3 +-- framework/Web/Javascripts/js/debug/prado.js | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'framework/Web/Javascripts/js') 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. -- cgit v1.2.3