]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
date picker for event form
authorEvan Prodromou <evan@status.net>
Thu, 10 Mar 2011 17:25:34 +0000 (11:25 -0600)
committerEvan Prodromou <evan@status.net>
Thu, 10 Mar 2011 17:25:34 +0000 (11:25 -0600)
plugins/Event/EventPlugin.php

index 5c2fd35d74532e5a671fb6ad550b5bb19ab44037..4159641d08ac41bc3a09b02db43fa73003451830 100644 (file)
@@ -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(); });');
+    }
 }