summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
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/UI/TClientScriptManager.php
parent03142d666493516ca86dede5380344f8c05b7633 (diff)
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r--framework/Web/UI/TClientScriptManager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 03ac8479..ace11064 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -195,6 +195,12 @@ class TClientScriptManager extends TComponent
}
}
+ public function registerDefaultButtonScript($button)
+ {
+ $this->registerScriptInclude('prado:base',$this->publishScriptFile('base.js'));
+ return 'return Prado.DefaultButton.fire(event,\''.$button->getClientID().'\')';
+ }
+
public function registerValidationScript()
{
}