From e317d0289a304d0bb7ce7499834458281bf1ca63 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 18 Mar 2006 01:08:33 +0000 Subject: added TImageMap. --- framework/Web/Javascripts/js/colorpicker.js | 2 +- framework/Web/Javascripts/js/datepicker.js | 8 -------- framework/Web/Javascripts/js/prado.js | 1 + framework/Web/Javascripts/prado/controls.js | 7 ++++--- 4 files changed, 6 insertions(+), 12 deletions(-) (limited to 'framework/Web/Javascripts') diff --git a/framework/Web/Javascripts/js/colorpicker.js b/framework/Web/Javascripts/js/colorpicker.js index e220ab33..5668be98 100644 --- a/framework/Web/Javascripts/js/colorpicker.js +++ b/framework/Web/Javascripts/js/colorpicker.js @@ -320,7 +320,7 @@ this.inputs=_65; var _67=Prado.WebUI.TColorPicker.UIImages; this.inputs["currentColor"]=SPAN({className:"currentColor"}); this.inputs["oldColor"]=SPAN({className:"oldColor"}); -var _68=TABLE({className:"inputs"},TBODY(null,TR(null,TD({className:"currentcolor",colSpan:2},this.inputs["currentColor"],this.inputs["oldColor"])),TR(null,TD(null,"H:"),TD(null,this.inputs["H"],'°')),TR(null,TD(null,"S:"),TD(null,this.inputs["S"],"%")),TR(null,TD(null,"V:"),TD(null,this.inputs["V"],"%")),TR(null,TD({className:"gap"},"R:"),TD({className:"gap"},this.inputs["R"])),TR(null,TD(null,"G:"),TD(null,this.inputs["G"])),TR(null,TD(null,"B:"),TD(null,this.inputs["B"])),TR(null,TD({className:"gap"},"#"),TD({className:"gap"},this.inputs["HEX"])))); +var _68=TABLE({className:"inputs"},TBODY(null,TR(null,TD({className:"currentcolor",colSpan:2},this.inputs["currentColor"],this.inputs["oldColor"])),TR(null,TD(null,"H:"),TD(null,this.inputs["H"],"\u63b3")),TR(null,TD(null,"S:"),TD(null,this.inputs["S"],"%")),TR(null,TD(null,"V:"),TD(null,this.inputs["V"],"%")),TR(null,TD({className:"gap"},"R:"),TD({className:"gap"},this.inputs["R"])),TR(null,TD(null,"G:"),TD(null,this.inputs["G"])),TR(null,TD(null,"B:"),TD(null,this.inputs["B"])),TR(null,TD({className:"gap"},"#"),TD({className:"gap"},this.inputs["HEX"])))); var _69={selector:SPAN({className:"selector"}),background:SPAN({className:"colorpanel"}),slider:SPAN({className:"slider"}),hue:SPAN({className:"strip"})}; if(Prado.Browser().ie){ var _70="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"; diff --git a/framework/Web/Javascripts/js/datepicker.js b/framework/Web/Javascripts/js/datepicker.js index 58ef5c7c..7cfad904 100644 --- a/framework/Web/Javascripts/js/datepicker.js +++ b/framework/Web/Javascripts/js/datepicker.js @@ -331,14 +331,6 @@ pos[1]+=this.control.offsetHeight; }else{ if($(this.options.ID+"_day")){ pos[1]+=$(this.options.ID+"_day").offsetHeight-1; -}else{ -if($(this.options.ID+"_month")){ -pos[1]+=$(this.options.ID+"_month").offsetHeight-1; -}else{ -if($(this.options.ID+"_year")){ -pos[1]+=$(this.options.ID+"_year").offsetHeight-1; -} -} } } this._calDiv.style.display="block"; diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js index b7dba8d8..d142a070 100644 --- a/framework/Web/Javascripts/js/prado.js +++ b/framework/Web/Javascripts/js/prado.js @@ -1885,6 +1885,7 @@ Prado.WebUI.TLinkButton=Prado.WebUI.ClickableComponent; Prado.WebUI.TImageButton=Prado.WebUI.ClickableComponent; Prado.WebUI.TCheckBox=Prado.WebUI.ClickableComponent; Prado.WebUI.TBulletedList=Prado.WebUI.ClickableComponent; +Prado.WebUI.TImageMap=Prado.WebUI.ClickableComponent; Prado.WebUI.TRadioButton=Prado.WebUI.createPostBackComponent(Prado.WebUI.ClickableComponent.prototype); Prado.WebUI.TRadioButton.prototype.onRadioButtonInitialize=Prado.WebUI.TRadioButton.prototype.initialize; Object.extend(Prado.WebUI.TRadioButton.prototype,{initialize:function(_431){ diff --git a/framework/Web/Javascripts/prado/controls.js b/framework/Web/Javascripts/prado/controls.js index 7a1a8257..1d274fd8 100644 --- a/framework/Web/Javascripts/prado/controls.js +++ b/framework/Web/Javascripts/prado/controls.js @@ -72,6 +72,7 @@ Prado.WebUI.TLinkButton = Prado.WebUI.ClickableComponent; Prado.WebUI.TImageButton = Prado.WebUI.ClickableComponent; Prado.WebUI.TCheckBox = Prado.WebUI.ClickableComponent; Prado.WebUI.TBulletedList = Prado.WebUI.ClickableComponent; +Prado.WebUI.TImageMap = Prado.WebUI.ClickableComponent; /** * Radio button, only initialize if not already checked. @@ -154,7 +155,7 @@ Prado.WebUI.TTextHighlighter=Class.create(); Prado.WebUI.TTextHighlighter.prototype={initialize:function(id) { if(!window.clipboardData) return; - var options = + var options = { href : 'javascript:;//copy code to clipboard', onclick : 'Prado.WebUI.TTextHighlighter.copy(this)', @@ -166,7 +167,7 @@ Prado.WebUI.TTextHighlighter.prototype={initialize:function(id) }}; Object.extend(Prado.WebUI.TTextHighlighter, -{ +{ copy : function(obj) { var parent = obj.parentNode.parentNode.parentNode; @@ -182,7 +183,7 @@ Object.extend(Prado.WebUI.TTextHighlighter, if(text.length > 0) window.clipboardData.setData("Text", text); }, - + hover : function(obj) { obj.parentNode.className = "copycode copycode_hover"; -- cgit v1.2.3