From d4df553e7163f8bc8f09f79e058d5815f35ce709 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 15 Apr 2007 12:21:24 +0000 Subject: fixed a type about TApplicationMode --- framework/Web/Javascripts/js/debug/prado.js | 46 ++++++++++++++++++----------- 1 file changed, 29 insertions(+), 17 deletions(-) (limited to 'framework/Web/Javascripts/js/debug/prado.js') diff --git a/framework/Web/Javascripts/js/debug/prado.js b/framework/Web/Javascripts/js/debug/prado.js index 03c271af..2d6ac3ec 100644 --- a/framework/Web/Javascripts/js/debug/prado.js +++ b/framework/Web/Javascripts/js/debug/prado.js @@ -3735,12 +3735,23 @@ Prado.Element = extractContent : function(text, boundary) { - var f = RegExp('()([\\s\\S\\w\\W]*)()',"m"); + var tagStart = ''; + var tagEnd = ''; + var start = text.indexOf(tagStart); + if(start > -1) + { + start += tagStart.length; + var end = text.indexOf(tagEnd,start); + if(end > -1) + return text.substring(start,end); + } + return null; + /*var f = RegExp('(?:)((?:.|\n|\r)+?)(?:)',"m"); var result = text.match(f); if(result && result.length >= 2) - return result[2]; + return result[1]; else - return null; + return null;*/ }, evaluateScript : function(content) @@ -4447,7 +4458,7 @@ Prado.WebUI.PostBackControl.prototype = { if(typeof(this.element.onclick)=="function") { - this._elementOnClick = this.element.onclick.bind(this.element);; + this._elementOnClick = this.element.onclick.bind(this.element); this.element.onclick = null; } Event.observe(this.element, "click", this.elementClicked.bindEvent(this,options)); @@ -4716,8 +4727,8 @@ Prado.WebUI.TRadioButtonList = Base.extend( } }); -Prado.WebUI.TRatingList = Class.create(); -Prado.WebUI.TRatingList.prototype = +Prado.WebUI.TRatingList = Class.create(); +Prado.WebUI.TRatingList.prototype = { selectedIndex : -1, @@ -4732,48 +4743,49 @@ Prado.WebUI.TRatingList.prototype = Event.observe(this.radios[i].parentNode, "mouseover", this.hover.bindEvent(this,i)); Event.observe(this.radios[i].parentNode, "mouseout", this.recover.bindEvent(this,i)); Event.observe(this.radios[i].parentNode, "click", this.click.bindEvent(this, i)); - } + } this.caption = CAPTION(); this.element.appendChild(this.caption); this.selectedIndex = options.selectedIndex; this.setRating(this.selectedIndex); }, - + hover : function(ev,index) { for(var i = 0; i -1 ? - this.radios[index].value : this.options.caption; + this.caption.innerHTML = index > -1 ? + this.radios[index].value : this.options.caption; } -} +}; + -- cgit v1.2.3