From 9c721f202fcc8430cd704dd744ec2a7a56f76940 Mon Sep 17 00:00:00 2001 From: denise Date: Tue, 18 Sep 2012 11:05:13 -0400 Subject: [PATCH] -small UI improvement --- .../public/js/airtime/showbuilder/builder.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/airtime_mvc/public/js/airtime/showbuilder/builder.js b/airtime_mvc/public/js/airtime/showbuilder/builder.js index b280460bd..9839df06c 100644 --- a/airtime_mvc/public/js/airtime/showbuilder/builder.js +++ b/airtime_mvc/public/js/airtime/showbuilder/builder.js @@ -66,10 +66,10 @@ var AIRTIME = (function(AIRTIME){ var $selectable = $sbTable.find("tbody").find("input:checkbox"); if ($selectable.length !== 0) { - AIRTIME.button.enableButton("btn-group #timeline-select", true); + AIRTIME.button.enableButton("btn-group #timeline-select", false); } else { - AIRTIME.button.disableButton("btn-group #timeline-select", true); + AIRTIME.button.disableButton("btn-group #timeline-select", false); } //need to check if the 'Select' button is disabled @@ -1083,17 +1083,18 @@ var AIRTIME = (function(AIRTIME){ }); /* - * Icon hover states in the toolbar. + * Select button dropdown state in the toolbar. + * The button has to be disabled to prevent the dropdown + * from opening */ $sbContent.on("mouseenter", ".btn-group #timeline-select", function(ev) { - $el = $(this).parent(), - $ch = $el.children('#timeline-select'); + $el = $(this); if ($el.hasClass("ui-state-disabled")) { - $ch.attr("disabled", "disabled"); + $el.attr("disabled", "disabled"); } else { - $ch.removeAttr("disabled"); + $el.removeAttr("disabled"); } });