summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/edit.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event/edit.phtml')
-rwxr-xr-xapplication/views/scripts/event/edit.phtml17
1 files changed, 6 insertions, 11 deletions
diff --git a/application/views/scripts/event/edit.phtml b/application/views/scripts/event/edit.phtml
index 673682f..c6a69f9 100755
--- a/application/views/scripts/event/edit.phtml
+++ b/application/views/scripts/event/edit.phtml
@@ -15,32 +15,27 @@ $ids = implode(", ", $bootosIDs);
echo "bootosIDs = new Array(" . $ids . ");\n";
echo "</script>";
echo $this->editForm;
-echo '<script type="text/javascript">
+?>
+<script type="text/javascript">
bootosfieldChanged("pbs_bootosID", bootosIDs);
$(function() {
$("#start").datetimepicker({
- onSelect: function (selectedDateTime){
- var start = $(this).datetimepicker("getDate");
- $("#end").datetimepicker("option", "minDate", new Date(start.getTime()));
- },
+ minDate: new Date(),
dateFormat: "mm/dd/yy",
timeFormat: "hh:mm tt",
ampm: true
});
$("#end").datetimepicker({
- onSelect: function (selectedDateTime){
- var end = $(this).datetimepicker("getDate");
- $("#start").datetimepicker("option", "maxDate", new Date(end.getTime()) );
- },
+ minDate: new Date(),
dateFormat: "mm/dd/yy",
timeFormat: "hh:mm tt",
ampm: true
});
$("#repeatdate").datetimepicker({
+ minDate: new Date(),
dateFormat: "mm/dd/yy",
timeFormat: "hh:mm tt",
ampm: true
});
});
- </script>';
-?> \ No newline at end of file
+</script>