Memoryblock: class "blockTopOpen" is not persistent
jptavan - September 30, 2007 - 13:12
| Project: | JSFX |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The class "blockTopOpen" is applied to the h2 header when you click to open a block.
But when you navigate to another page, it is forgetted.
I think there is a typo on memoryblock.js :
else if (status != 'closed' && status == 2) {
top.attr("class","blockTopOpen")
createCookie(id, 'open', 1);
}The value for "status" cannot be "2", and this test is always false
This one is ok :
else if (status == 'open' || (status == null && setting == 2)) {
#1
I never noticed that before. Your solution seems to work. I'll add it to the next release.
Thanks a lot,
Silvio