When the block is cached via panels/ctools the JS is missing. Attached patch includes the JS with the rendering, what lets panels detect the JS files. Even cleaner would be using #attached though, but the attached patch fixes the issue with panels already.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1997260-56.patch | 3.6 KB | Anonymous (not verified) |
| d7_search_api_ranges_cache.patch | 2.78 KB | fago |
Comments
Comment #1
fagoComment #2
Anonymous (not verified) commentedThanks! Makes sense.
http://drupalcode.org/project/search_api_ranges.git/commit/f63e00f
Comment #4
FreeAndEasy commentedReopened because block caching doesn't work.
The js-files indeed need to be in the #attached property to make block caching work, otherwise the JS is missing.
Comment #5
Anonymous (not verified) commentedPlease let me know if the attached patch fixes your issue.
Comment #6
FreeAndEasy commentedIt Works great!
Comment #7
Anonymous (not verified) commentedOk, great. Committed to dev-x.
http://drupalcode.org/project/search_api_ranges.git/commit/5028d18