Download & Extend

Using any version of Jquery Update Module Breaks open resort silently.

Project:Openresort Community Edition
Version:5.x-1.9-3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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

Comments

#1

Hello,

I kinda solved this but I am not 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

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!

#4

Status:active» closed (won't fix)

Project is dead