I am using Zurb Foundation 7.x-1.0-alpha1 on a site in which I am using the Relation module and the Relation Add module.

The Relation add module uses a select box to make a choice regarding the type of relationship you are going to create and provides an autocomplete textbox in order to select the endpoint of the relationship. Using Bartik, and event the Seven theme, the functionality works just fine. But, when using the Zurb Foundation theme or the subtheme I've created based on Zurb Foundation, the autocomplete textbox just spins and does not respond to whatever is being typed in the textbox.

I've attached an screenshot to demonstrate.

I've been experimenting with using jquery update module and changing the order in which the jquery scripts are set in the .info file, but I have not had any success.

Hopefully, someone with a bit more experience in this area can help in solving this issue.

Thanks,
Dan

Comments

daniel-san’s picture

StatusFileSize
new20.55 KB

UPDATE:

I realized that in the template.php file of the main zurb-foundation theme, there is a function that is moving all the javascript to the footer.

function zurb_foundation_js_alter(&$js) {
  if (!module_exists('jquery_update')) {
    // Swap out jQuery to use an updated version of the library.
    $js['misc/jquery.js']['data'] = drupal_get_path('theme', 'zurb_foundation') . '/js/jquery.js';
    $js['misc/jquery.js']['version'] = '1.8.2';
  }
    // @TODO moving scripts to footer possibly remove?
    foreach ($js as $key => $js_script) {
    $js[$key]['scope'] = 'footer';
   }
}

After removing the foreach section that moves it to the footer, the functionality of the autocomplete began to work.

The throbber still doesn't work exactly right, but the autocomplete begins to work.

chrisjlee’s picture

Priority: Normal » Major
alexweber’s picture

I don't mean to be inconsiderate or anything but I really don't think this will ever get fixed in the 7.x-1.x branch (and it's already fixed in 7.x-4.x).... can we "won't fix" this one maybe?

chrisjlee’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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