summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
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()
{
}