Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Date picker broken 11 May 2013 14:20 #7173

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?

Please Log in or Create an account to join the conversation.

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

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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.077 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started