From: Evan Prodromou Date: Thu, 10 Mar 2011 17:25:34 +0000 (-0600) Subject: date picker for event form X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=39f8d2c72830d7bc3c08f60d1df38d19c846a74b;p=quix0rs-gnu-social.git date picker for event form --- 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(); });'); + } }