The new reset button doesnt seem to work properly. I hit reset and then ok it showed the block, i hit f5 its hidden again "display:none". I am logged in as admin.
The new reset button doesnt seem to work properly. I hit reset and then ok it showed the block, i hit f5 its hidden again "display:none". I am logged in as admin.
Comments
Comment #1
marcoka commentedwell. i reset it. visit the page, block shows, i hit f5, settings are written to the db (without hitting the close button)
http://www.root.artwaves.de/screensnapr/1352842558-rrHUJ9.jpg
so no wonder it just sets the db value (that it should be closed) without hitting the close button.
Comment #2
marcoka commentedthe same is for anonymous users, hit f5 and block is gone.
it just calls closeblock_ajax_callback() on f5 and there is closeblock_closing_info_set($params); called.
this function should only be called by the CLOSE button right?
Comment #3
marcoka commentedtested with a clean install and garland. hit f5 block gone. this makes the module non-functional.
Comment #4
marcoka commentedi did some debugging
disabling the "save state" option. module works as expected. so the save state logic is broken.
Comment #5
marcoka commentedproblem is that the callback is called on page request and not by clicking the button.
well i found the error and pulled me the 7.x from git as i wanted to patch this, as i see you fixed it there. could you please set the correct version to stable as the current 1.4 is broken.
Comment #6
marcoka commentedwell the master and 7.x do not seem to have the save function,so no patch with git. here is the fix, you want the ajax post that triggers the ajax callback INSIDE the click button function
CURRENTLY, the ajax callback is called on pageload, thats wrong. clicking the buttn should trigger it.
CHANGE TO THIS, putting the ajax callback INSIDE the click function.
Comment #7
skifdesu commentedFixed. Please check for new release.
Comment #8
marcoka commentedtested the module again today. reset is still not working, block stays hidden. can anyone confirm this?
Comment #9
marcoka commentedi actually found the problem:
This will not work if you use a subteheme like omega/zen or adaptive theme because then there is no $form_state['values']['theme']
so basically rest will not work if done on admin/appearance/settings but it will work if you hit the reset button in the block settings.
Comment #11
hoter commentedPlease have a look at the latest version of the module (7.x-1.6).