-small UI improvement

This commit is contained in:
denise 2012-09-18 11:05:13 -04:00
parent 1698aae251
commit 9c721f202f
1 changed files with 8 additions and 7 deletions

View File

@ -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");
}
});