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.
16 lines
463 B
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);
|
|
|