16 Jul 2012 22:42
Re: Date picker for DokuWiki - is there one anywhere?
Chris Green <cl <at> isbd.net>
Re: Date picker for DokuWiki - is there one anywhere?
2012-07-16 20:42:48 GMT
Re: Date picker for DokuWiki - is there one anywhere?
2012-07-16 20:42:48 GMT
On Mon, Jul 16, 2012 at 07:25:29PM +0200, Michael Hamann wrote:
> Hi,
>
> 2012/7/16 Chris Green <cl <at> isbd.net>:
> > I want a compact date picker for DokuWiki that I can have in the sidebar
> > (I use the Roundbox template) or pop up from an icon on a wiki page. Is
> > there anything available ready made anywhere?
>
> yes, DokuWiki includes jQuery UI, jQuery UI includes a datepicker
> widget [0]. It should be relatively simple to create a syntax plugin
> which prints a form input and includes some javascript which enables
> the datepicker widget for this input.
>
I'm very much not a JavaScript expert, nor do I know how it links into DokuWiki.
Looking at the example code at the link you pointed me to the example
comprises (in the HTML):-
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<div class="demo">
<p>Date: <input type="text" id="datepicker"></p>
</div><!-- End demo -->
If I write a plugin to use this can I just put the <script> into a file
called script.js in the plugin and create the appropriate <input....>
using a conventional syntax plugin?
--
Chris Green
--
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist
RSS Feed