I'm testing the module. I have created a node with a calendar, but I'm not able to update the availability on the different days, according to the description it says "To update the calendar: select a state and click on a begin and end date. Repeat if needed.", but when I click on the day the day on the node edit form, nothing happens.

Also the viewport doesn't work, I can see the links saying previous and next months, but all the months are shown at the same time, when editing the node and when viewing.

I suspect it could be a JS problem, can anyone help? How can I test it?

Thanks!

Comments

fietserwin’s picture

If both are not working it could indeed be a JS problem. What browser are you using? Do you see any error messages? (For IE: be sure to enable js error messages via internet options - advanced - view web pages: uncheck "disable debugging script errors" (not sure about exact English text))

Furthermore: I did some js refactoring last week. What dev version are you using (= what date?). Could you try the may 14 dev version if not already using?

taote’s picture

Hi. I'm using Chrome and Firefox on Mac. No error messages. Neither any Javascript error on Firebug.

I'm using the latest dev version, I've tried the latest stable release and it's not working neither.

taote’s picture

Yes there it's an error on Javascript it says "a.attributes is null" on jquery.js?v=1.4.4. But when the user is not logged in, I don't get that error and the viewport works.

taote’s picture

Ok, I think it's a conflict withe module Admin. When I deactivate it, it works. That's why when the user is logged on it wasn't working.

Any ideas, what could be the problem? I need to use both modules.

Thanks.

fietserwin’s picture

Do you get the error also when availability calendars is disabled? If so it seems a pure admin module problem. if not, what version of admin are you using, so I can have a look at it myself.

fietserwin’s picture

taote’s picture

I can't try that yet, because I can't disable the Availability Calendar module, because I deleted the field using this module, but it's still saying "Fields pending deletion", I want to do this to solve it.

Anyway, the error was only on the pages to edit and view the node containing the calendar field. And the jQuery version I think is 1.4.4 according to the line: "

"

fietserwin’s picture

Running cron should delete fields pending for deletion.

taote’s picture

Yes, you're right. I've run the cron manually, and then I could deactivate the module.

Having Admin module on, and Availability Calendar off, no Javascript error on the same page for the node where I had the calendar and got the error before.

Have you tried to install the Admin module to see if you have a conflict too?

fietserwin’s picture

Status: Active » Closed (duplicate)

#1475074: Possible undefined variable with jquery 1.7 solved the problem for me. href is not a required attribute on <a> tags, so the error is in the code that queries for that, not in this code that does not place an href attribute on <a> tags.