2009-12-03 15:20:38

mrtunes
Member
mu
Real name: Elliott
From: Toronto, On
Website

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

 

2009-12-03 16:28:00

MattD
Plugin Author
sigma
Real name: Matt Davis
From: Monterey, California
Website

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)


My Plugins

In a way, each of us has an El Guapo to face. -Lucky Day (Three Amigos)

Offline

 

2009-12-03 16:43:18

candyman
Member
lambda
Real name: Alessandro
From: Italy
Known languages: Italian, English

Re: jquery ui datepicker in admin

Where can I download the msd_admin_datepicker? :P

Offline

 

2009-12-03 20:12:38

MattD
Plugin Author
sigma
Real name: Matt Davis
From: Monterey, California
Website

Re: jquery ui datepicker in admin

Ask and you shall receive


My Plugins

In a way, each of us has an El Guapo to face. -Lucky Day (Three Amigos)

Offline

 

2009-12-03 23:58:44

candyman
Member
lambda
Real name: Alessandro
From: Italy
Known languages: Italian, English

Re: jquery ui datepicker in admin

Speechless.

Offline

 

Powered by FluxBB