summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/add.phtml
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-18 11:14:41 +0200
committerBjörn Geiger2011-10-18 11:14:41 +0200
commit951bda205350b22c3d3cd930f892aa95e9885a20 (patch)
tree80c8d0cf98345906fbace32505931b29c80d3234 /application/views/scripts/event/add.phtml
parentminor (diff)
downloadpoolctrl-951bda205350b22c3d3cd930f892aa95e9885a20.tar.gz
poolctrl-951bda205350b22c3d3cd930f892aa95e9885a20.tar.xz
poolctrl-951bda205350b22c3d3cd930f892aa95e9885a20.zip
weiteres
Diffstat (limited to 'application/views/scripts/event/add.phtml')
-rwxr-xr-xapplication/views/scripts/event/add.phtml11
1 files changed, 7 insertions, 4 deletions
diff --git a/application/views/scripts/event/add.phtml b/application/views/scripts/event/add.phtml
index 65c08d5..e65720f 100755
--- a/application/views/scripts/event/add.phtml
+++ b/application/views/scripts/event/add.phtml
@@ -15,10 +15,13 @@ $ids = implode(", ", $bootosIDs);
echo "var bootosIDs = new Array(" . $ids . ");\n";
echo "</script>";
echo $this->addForm;
-echo '<script type="text/javascript">
- bootosfieldChanged("pbs_bootosID", bootosIDs);
- addeventcategoryfieldChanged("category", bootosIDs);
- immediateChanged("immediate");
+echo '<script type="text/javascript">';
+if(isset($this->params['add'])) {
+ echo 'addeventcategoryfieldChanged("category", bootosIDs);\n';
+} else {
+ echo 'addeventcategoryfieldChanged("category", bootosIDs, true);\n';
+}
+echo 'immediateChanged("immediate", bootosIDs);
$(function() {
$("#start").datetimepicker({
dateFormat: "mm/dd/yy",