From 39f8d2c72830d7bc3c08f60d1df38d19c846a74b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 10 Mar 2011 11:25:34 -0600 Subject: [PATCH] date picker for event form --- plugins/Event/EventPlugin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 5c2fd35d74..4159641d08 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -435,4 +435,9 @@ class EventPlugin extends MicroappPlugin common_log(LOG_DEBUG, "Not deleting related, wtf..."); } } + + function onEndShowScripts($action) + { + $action->inlineScript('$(document).ready(function() { $("#startdate").datepicker(); $("#enddate").datepicker(); });'); + } } -- 2.39.5