Using any version of Jquery Update Module Breaks open resort silently.
sgriffin - July 22, 2008 - 21:24
| Project: | Openresort Community Edition |
| Version: | 5.x-1.9-3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Symtom: Choosing dates in availability calendar, removes main calendar and displays nothing when it should display Details, Book Now etc.

#1
Hello,
I kinda solved this but I am sure if it covers all possibilities. There are a few issues at work here, at least in my install.
Calendars not showing up
For some reason
drupal_add_jsrefuses to add the javascript files in openresort. Still don't know why this happens but I got around it by overriding the$scriptsand$stylesvariables in my template.php file. In the_phptemplate_variablesfunction I have:<?php
$vars['scripts'] = drupal_get_js();
$vars['styles'] = drupal_get_css();
?>
Which is just what phptemplate does by default anyway. I don't know why it doesn't work as it should but that seems to fix it.
Progress bar, availability search, etc. not showing
Once again I didn't investigate too much but I got this to work by editing
accomodation.jsandunit.js. I removed the hide call in the oncomplete function and placed an explicit show call. So the two functions become:Drupal.accommodation.prototype.oncomplete = function (data) {$('div.availability')
.html(data)
.end()
.show()
.fadeIn('fast');
document.getElementById('search-results').scrollIntoView();
}
and
Drupal.unit.prototype.oncomplete = function (data) {$('div.availability')
.html(data)
.end()
.show()
.fadeIn('fast');
document.getElementById('search-results').scrollIntoView();
}
I am sure the issues are deeper than this but at least this gets the basic functionality back.
#2
Sweet. I'll give that a run and update the thread.
#3
It appears to work great. The old jquery looks like it was the cause to slow down a gmap within an iframe, now it looks much faster as well.
Thanks a bunch!