From eec07d38f74d9213ead1374e4b878e58bcfe967e Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 13 Dec 2018 15:05:41 -0600 Subject: [PATCH] prevent multiple event bindings on collapsible advanced options header --- airtime_mvc/public/js/airtime/playlist/smart_blockbuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/playlist/smart_blockbuilder.js b/airtime_mvc/public/js/airtime/playlist/smart_blockbuilder.js index e4e170978..035567389 100644 --- a/airtime_mvc/public/js/airtime/playlist/smart_blockbuilder.js +++ b/airtime_mvc/public/js/airtime/playlist/smart_blockbuilder.js @@ -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