Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Date picker broken

Date picker broken 11 May 2013 14:20 #7173

  • alanw4c
  • alanw4c's Avatar
  • Offline
  • New Member
  • Posts: 10
  • Karma: 0
The date picker doesn't work for the 1.6, 1.7, 2.5 CMS version.

I've also discovered that using Access wizard with the 2.5 beta breaks the build so it doesn't work.

In combination this means I can't create a component unless I write the ACL/Access part my self - any chance of a fix?
The administrator has disabled public write access.

Re: Date picker broken 12 May 2013 04:56 #7175

  • alanw4c
  • alanw4c's Avatar
  • Offline
  • New Member
  • Posts: 10
  • Karma: 0
Okay so I solved the problem. The build doesn't include jquery in the code. I found this:

www.j-cook.pro/forum/32-trouble-shooting...lem-with-date-picker

which helped. I found I needed to add explicitly the two lines:

$doc->addScript($componentUrlAdmin . '/js/jquery-1.8.2.min.js');
$doc->addScript($componentUrlAdmin . '/js/jquery-ui-1.9.1.min.js');

in the

function headerDeclarations()

so the top of it now looks like this

function headerDeclarations()
{
$app = JFactory::getApplication();
$doc = JFactory::getDocument();

$siteUrl = JURI::root(true);
$siteUrl = str_replace("\\", "/", $siteUrl); //Win servers

$componentUrl = $siteUrl . '/components/com_customersitedetails';
$componentUrlAdmin = $siteUrl .'/administrator/components/com_customersitedetails';

$doc->addScript($componentUrlAdmin . '/js/jquery-1.8.2.min.js');
$doc->addScript($componentUrlAdmin . '/js/jquery-ui-1.9.1.min.js');

//Javascript
$doc->addScript($siteUrl . '/media/system/js/core.js');
// Mootools non conflict is handled here :
$doc->addScriptDeclaration("var Moo = document.id;");

This happens even when I use the option to include jquery in the build system.

Hope this helps someone with a problem.
The administrator has disabled public write access.
Time to create page: 0.050 seconds

Get Started