Closed (fixed)
Project:
Facet API
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2012 at 23:47 UTC
Updated:
1 Mar 2012 at 22:00 UTC
Hey there,
I was getting a settings.facetapi is undefined js error when using the dialog api module (jquery UI) on any page with a facet block.
I put together a simple patch that fixes it (and it doesn't even break facetapi!).
Cheers
| Comment | File | Size | Author |
|---|---|---|---|
| facetapi_js_error.patch | 1.48 KB | jptaranto |
Comments
Comment #1
cpliakas commentedI think the defensive coding is good here.
Out of curiosity, what widget are you using? I am trying to figure out why there would be no settings passed for the facet.
Thanks for the patch,
Chris
Comment #2
jptarantoAwesome dude.
The error was getting thrown when I opened a page via the (rather beta) Dialog API module. It just uses the jQuery UI .dialog() widget. Probably not caused by dialog() though, and more likely to be something to do with Dialog API's AJAX and loading of js already on the page.
Comment #3
cpliakas commentedResolved in commit http://drupalcode.org/project/facetapi.git/commit/c956607.
Congrats on becoming the 21st code contributor to Facet API!