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

TOPIC:

[SOLVED] Preferences in backend do not open in modal window 24 May 2013 19:03 #7227

When I click the "Options" toolbar button for my component in the, the main window navigates to the options page instead of opening in a modal dialog.

The native components all work as expected, it is just my j-cook component that exerts this behavior.

Any solutions? I didn't come across any when searching the forum.

Thank you in advance for the help.

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

Re: Preferences in backend do not open in modal window 26 May 2013 10:12 #7233

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
I presume that there must be some JS errors on the page.

Please check using Dev tools like firebug. It's most likely to be a namespace collision with another version of jQuery resulting in an error along the lines of 'jQuery is not defined' or 'xxxx is not a function'

Please let us know!

Best of luck!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The following user(s) said Thank You: jhallock

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

Re: Preferences in backend do not open in modal window 29 May 2013 18:37 #7259

Hi, You are correct.

I had commented out this line in my admin/helpers/helper.php file because it was conflicting with the jquery imported by my template on the front end.

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

I wrapped that statement in a conditional block instead of commenting it out and it worked as expected.

if ($app->isAdmin()) {
$doc->addScript($componentUrlAdmin . '/js/jquery-1.8.2.min.js');
}

Thanks for the help.

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

Last edit: by jhallock.
  • Page:
  • 1
Time to create page: 0.074 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