From 884af5e651e9157dfc406fd476a51d46279a8721 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 1 May 2006 01:24:11 +0000 Subject: Fixed focus error. --- framework/Web/Javascripts/js/prado.js | 4 ++-- framework/Web/Javascripts/prado/element.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js index d80f984d..498a6cf7 100644 --- a/framework/Web/Javascripts/js/prado.js +++ b/framework/Web/Javascripts/js/prado.js @@ -256,7 +256,7 @@ selection[method](isList?element:el,value);},click:function(element) {var el=$(element);if(!el)return;if(document.createEvent) {var evt=document.createEvent('HTMLEvents');evt.initEvent('click',true,true);el.dispatchEvent(evt);} else if(el.fireEvent) -{el.fireEvent('onclick');if(isFunction(el.onclick)) +{el.fireEvent('onclick');if(typeof(el.onclick)=="function") el.onclick();}},setAttribute:function(element,attribute,value) {var el=$(element);if(attribute=="disabled"&&value==false) el.removeAttribute(attribute);else @@ -265,7 +265,7 @@ el.setAttribute(attribute,value);},setOptions:function(element,options) {while(el.length>0) el.remove(0);for(var i=0;i