Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
jquery ui datepicker in admin
now that the backend is more customizable, is there a way to add the jquery date picker to a custom field?
this is because one of my sites uses ISO date to sort events, and this datepicker could probably input the ISO really quickly. thanks.
Last edited by mrtunes (2009-12-03 15:20:55)
Offline
Re: jquery ui datepicker in admin
I might be missing some css or something (not very familiar with jQuery UI) but you could modify the classic admin theme by changing html_head to something like this.
function html_head()
{
return '<link href="'.$this->url.'textpattern.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script><script type="text/javascript">$(document).ready( function(){$("#custom-1").datepicker();})</script>'.n;
}
or create a plugin that does it.
Last edited by MattD (2009-12-03 16:28:25)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#3 2009-12-03 16:43:18
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: jquery ui datepicker in admin
Where can I download the msd_admin_datepicker? :P
Offline
Re: jquery ui datepicker in admin
Ask and you shall receive
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#5 2009-12-03 23:58:44
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: jquery ui datepicker in admin
Speechless.
Offline
Pages: 1