Fix for Show/Hide not displaying correctly
-
I had an issue with Collapsing Categories 2.0.8 not closing up nested child categories when clicking the Arrow graphics. Click to display worked Ok but not when closing. After some research I found that your JavaScript code in collapsFunctions.js had been updated from using .live() to .on() several versions ago but no other syntax changes had been made to that JavaScript.
More info here: http://api.jquery.com/on/
Moving the child selector .expand did the trick
Around line #39 in collapsFunctions.js
jQuery('#' + id + ' .expand').on('click', function() {Change to:
jQuery('#' + id + '').on('click', '.expand', function() {Moving the child selector .collapse did the trick as well
Around line #50 in collapsFunctions.js
jQuery('#' + id + ' .collapse').on('click', function() {Change to:
jQuery('#' + id + '').on('click', '.collapse', function() {I hope this helps.
The topic ‘Fix for Show/Hide not displaying correctly’ is closed to new replies.