summaryrefslogtreecommitdiff
path: root/framework/Web/UI/JuiControls/TJuiControlAdapter.php
diff options
context:
space:
mode:
authorJens Klaer <kj.landwehr.software@gmail.com>2015-10-30 10:25:32 +0100
committerJens Klaer <kj.landwehr.software@gmail.com>2015-10-30 10:25:32 +0100
commit1fb46fbf9f6c5e1454e0873939e1acc4887bd795 (patch)
tree53222ec667d1c7ec93849da7b8e74a3205c4c712 /framework/Web/UI/JuiControls/TJuiControlAdapter.php
parent67f8a9c87ca327619d3469aaae4bc1b0da441628 (diff)
allow (anonymous) functions for TJuiControlOptions, changed TJuiDatepicker widget events to options
Diffstat (limited to 'framework/Web/UI/JuiControls/TJuiControlAdapter.php')
-rw-r--r--framework/Web/UI/JuiControls/TJuiControlAdapter.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/JuiControls/TJuiControlAdapter.php b/framework/Web/UI/JuiControls/TJuiControlAdapter.php
index 638f60f1..6c326739 100644
--- a/framework/Web/UI/JuiControls/TJuiControlAdapter.php
+++ b/framework/Web/UI/JuiControls/TJuiControlAdapter.php
@@ -194,6 +194,8 @@ class TJuiControlOptions
} elseif(is_numeric($value)) {
// trick to get float or integer automatically when needed
$this->_options[$option] = $value + 0;
+ } elseif(substr($low,0,8)=='function') {
+ $this->_options[$option] = new TJavaScriptLiteral($value);
} else {
$this->_options[$option] = $value;
}