fix for #6691,#6692: overriding fixes for #5669,#5668,#5727

Tested in Chrome, FireFox, Safari, IE - waits for animation/transition to complete before changing 'collapsed' class on itself or other panels