summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js
diff options
context:
space:
mode:
authorxue <>2005-12-06 22:53:07 +0000
committerxue <>2005-12-06 22:53:07 +0000
commitec46fdc945f591e910051aca0457097825afd34c (patch)
treeb79765ec299229678242267a7bfdf7e3c3f31349 /framework/Web/Javascripts/js
parent03142d666493516ca86dede5380344f8c05b7633 (diff)
Diffstat (limited to 'framework/Web/Javascripts/js')
-rw-r--r--framework/Web/Javascripts/js/base.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/js/base.js b/framework/Web/Javascripts/js/base.js
index d16db163..1f86b1c1 100644
--- a/framework/Web/Javascripts/js/base.js
+++ b/framework/Web/Javascripts/js/base.js
@@ -841,6 +841,23 @@ return _7;
Prado=Class.create();
Prado.version="3.0a";
+Prado.DefaultButton=Class.create();
+Prado.DefaultButton.buttonFired=false;
+Prado.DefaultButton.fire=function(_1,_2){
+if(!Prado.DefaultButton.buttonFired&&_1.keyCode==13&&!(_1.srcElement&&(_1.srcElement.tagName.toLowerCase()=="textarea"))){
+var _3=document.getElementById?document.getElementById(_2):document.all[_2];
+if(_3&&typeof (_3.click)!="undefined"){
+Prado.DefaultButton.buttonFired=true;
+_3.click();
+_1.cancelBubble=true;
+if(_1.stopPropagation){
+_1.stopPropagation();
+}
+return false;
+}
+}
+return true;
+};
Prado.doPostBack=function(_1,_2,_3,_4,_5,_6,_7,_8){
if(typeof (_4)=="undefined"){