diff options
author | wei <> | 2005-12-13 07:08:30 +0000 |
---|---|---|
committer | wei <> | 2005-12-13 07:08:30 +0000 |
commit | 35c7ff28cbc311fba5e394b11fb756a4dc1edcb9 (patch) | |
tree | 1ee39944b4cdba1ecc6aeb2a952139b5a3165f67 /framework/Web/Javascripts/js/base.js | |
parent | 2c383b6050b3d8cc6ac7a9442c999cb903af43ab (diff) |
Removed inline javascript from components. Adding TJavascriptLogger and logger.js
Diffstat (limited to 'framework/Web/Javascripts/js/base.js')
-rw-r--r-- | framework/Web/Javascripts/js/base.js | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/framework/Web/Javascripts/js/base.js b/framework/Web/Javascripts/js/base.js index 276c17bd..b999f722 100644 --- a/framework/Web/Javascripts/js/base.js +++ b/framework/Web/Javascripts/js/base.js @@ -859,29 +859,25 @@ return false; return true; }; Prado.TextBox=Class.create(); -Prado.TextBox.handleReturnKey=function(_4){ -if(_4.keyCode==13){ -var _5; -if(typeof (_4.target)!="undefined"){ -_5=_4.target; -}else{ -if(typeof (_4.srcElement)!="undefined"){ -_5=_4.srcElement; -} -} -if((typeof (_5)!="undefined")&&(_5!=null)){ -if(typeof (_5.onchange)!="undefined"){ -_5.onchange(); -_4.cancelBubble=true; -if(_4.stopPropagation){ -_4.stopPropagation(); -} +Prado.TextBox.handleReturnKey=function(ev){ +var kc=ev.keyCode!=null?ev.keyCode:ev.charCode; +if(kc==Event.KEY_RETURN){ +var _6=Event.element(ev); +if(_6&&isFunction(_6.onchange)){ +_6.onchange(); +Event.stop(ev); return false; } } -} return true; }; +Prado.LinkButton=Class.create(); +Prado.LinkButton.prototype={initialize:function(_7,_8){ +Event.observe(_7,"click",function(e){ +Prado.doPostback(_7,_8,""); +Event.stop(e); +}); +}}; Prado.doPostBack=function(_1,_2,_3,_4,_5,_6,_7,_8){ if(typeof (_4)=="undefined"){ |