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

Really great Joomla tool Cook is a great piece of kit for creating Joomla components. It uses a drag-n-drop interface to build tables and fully featured pages. You can test your component in a sandbox before downloading it packaged up ready to install. The developer is responsive on the support forum.
Twev (JED)
          

Get Started