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
Description

Symtom: Choosing dates in availability calendar, removes main calendar and displays nothing when it should display Details, Book Now etc.

#1

canen - July 29, 2008 - 22:09

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_js refuses to add the javascript files in openresort. Still don't know why this happens but I got around it by overriding the $scripts and $styles variables in my template.php file. In the _phptemplate_variables function 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.js and unit.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

sgriffin - July 30, 2008 - 00:15

Sweet. I'll give that a run and update the thread.

#3

sgriffin - August 5, 2008 - 18:11

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!

 
 

Drupal is a registered trademark of Dries Buytaert.