Hello,
in one of my websites I use the Block Refresh and FAQ modules.
In faq page the answers are opening on clicking the question with AJAX.
It worked perfectly, but after I installed the block_refresh modul, and set 60sec limit to one of the block appearing on FAQ page, i've noticed an error.
After 60sec the FAQ question is closing automatically and I can't reopen the question just after the fully refresh of the page.
In HTML sourcecode I can't see error (see below), but I think this error is caused by Block refresh.
Any suggestion?
$(document).ready(function() {
_block_refresh_data['#block-views-forumFooldal-block_1 .content'] = new block_refresh_data(60000, '/block_refresh/views/forumFooldal-block_1');
block_refresh_timer('#block-views-forumFooldal-block_1 .content');
})
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | faq.js_.diff | 7.95 KB | danyg |
Comments
Comment #1
michaellander commentedTo verify, the questions that are breaking aren't actually within the refreshing blocks, they are just on the same page?
Comment #2
danyg commentedYes, as you described. They are just on the same page and block refresh only refreshes a views-block in the sidebar.
Comment #3
danyg commentedHello,
it seems this is faq.js error.
Our college repaired the faq.js and it works fine.
Some returns and faq-processed classes are missing from the end of the functions.
I attach the diff file to see all the changes. But it's not tested in all faq list type.
Comment #4
danyg commentedComment #5
stella commentedI've committed this patch to both D6 and D7 branches, except for the extra "return FALSE;" statements - they should only be added if you want to prevent the normal default behaviour or subsequent javascript functionality on click events. This makes sense when clicking links in the faq layouts for example, but not for the checkboxes on the configuration pages.