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.073 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started