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.

CommentFileSizeAuthor
#5 1997260-56.patch3.6 KBAnonymous (not verified)
d7_search_api_ranges_cache.patch2.78 KBfago

Comments

fago’s picture

Status: Active » Needs review
Anonymous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

FreeAndEasy’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

Reopened 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.

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new3.6 KB

Please let me know if the attached patch fixes your issue.

FreeAndEasy’s picture

It Works great!

Anonymous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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