You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart/js/scripts/global/widgetsHidable.js

16 lines
463 B

/* global woodmart_settings */
(function($) {
woodmartThemeModule.widgetsHidable = function() {
woodmartThemeModule.$document.on('click', '.widget-hidable .widget-title', function() {
var $this = $(this);
var $content = $this.siblings('ul, div, form, label, select');
$this.parent().toggleClass('widget-hidden');
$content.stop().slideToggle(200);
});
};
$(document).ready(function() {
woodmartThemeModule.widgetsHidable();
});
})(jQuery);