Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Preferences in backend do not open in modal window

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

  • jhallock
  • jhallock's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
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.
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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 administrator has disabled public write access.
The following user(s) said Thank You: jhallock

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

  • jhallock
  • jhallock's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
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.
Last Edit: 12 Jun 2013 17:35 by jhallock.
The administrator has disabled public write access.
Time to create page: 0.063 seconds

Get Started