prevent multiple event bindings on collapsible advanced options header

This commit is contained in:
ryan 2018-12-13 15:05:41 -06:00
parent 13d6df24fb
commit eec07d38f7
1 changed files with 2 additions and 2 deletions

View File

@ -567,10 +567,10 @@ function setupUI() {
}
});
activeTab.find('.smart-block-form .collapsible-header').click(function(){
activeTab.find('.collapsible-header').off('click').on('click', function(){
$(this).toggleClass('visible');
$('.smart-block-advanced').toggle();
})
});
}
/* Utilizing jQuery this function finds the #datetime_select element on the given row