When clicking any of the navigation links (next week, previous week), the module stalls on "Loading Administration Interface"

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dopedwizard’s picture

For me it also stalls with the current dev version after installation when clicking on the opening hours tab when editing a node.

mikl’s picture

Status: Active » Postponed (maintainer needs more info)

Please check the JavaScript console to see what errors are reported there.

dopedwizard’s picture

I got it to work by activating clean urls on my server. This was not intentional but it did fix it, now it opens the tab.

topham’s picture

I get this message when I try using Opening Hours with the Administrator Overlay.
The fix is pretty simple: I replaced the references to #next, #prev, #current in the template file opening_hours_admin.tpl.php
(Note: This particular edit hasn't been tested, it's a minor change and I can't get to it at work for a while.)

topham’s picture

Status: Postponed (maintainer needs more info) » Needs review

Changed status to Needs Review

mikl’s picture

Status: Needs review » Needs work

href="javascript:return true;" is not really the way to go. If the click event handler fails, we need to figure out why.

topham’s picture

You can't href to an anchor tag within the overlay, it will not work.

mikl’s picture

Version: 7.x-1.1 » 7.x-1.x-dev

#7: Oooh, the dreaded overlay.module. This won't work at all inside that. I'll try to see some what of opting out of it.

mikl’s picture

Title: Module crashes on "Loading Administration Interface" » Overlay.module breaks the JavaScript behavior of the Opening Hours admin interface
Category: bug » feature

More accurate title. This misfeature of Drupal 7 is not a bug in my code.

mikl’s picture

Status: Needs work » Fixed

I've committed a hacky workaround for this travesty: http://drupalcode.org/project/opening_hours.git/commitdiff/0cf1d3e

Will be released in 1.2.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.