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

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started