CC-4445: Timeline: 'Select' dropdown menu should be disabled if the button is disabled
-fixed
This commit is contained in:
parent
c19030e8fb
commit
99969ff19d
|
@ -330,28 +330,6 @@ var AIRTIME = (function(AIRTIME){
|
||||||
$lib = $("#library_content"),
|
$lib = $("#library_content"),
|
||||||
$sbTable = $sbContent.find('table');
|
$sbTable = $sbContent.find('table');
|
||||||
|
|
||||||
/*
|
|
||||||
* Icon hover states in the toolbar.
|
|
||||||
*/
|
|
||||||
$sbContent.on("mouseenter", "#timeline-select .dropdown-toggle", function(ev) {
|
|
||||||
$el = $(this);
|
|
||||||
|
|
||||||
if (!$el.hasClass("ui-state-disabled")) {
|
|
||||||
$el.addClass("ui-state-hover");
|
|
||||||
$("#timeline-select .caret").contextMenu(true);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$("#timeline-select .caret").contextMenu(false);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$sbContent.on("mouseleave", ".fg-toolbar ul li", function(ev) {
|
|
||||||
$el = $(this);
|
|
||||||
|
|
||||||
if (!$el.hasClass("ui-state-disabled")) {
|
|
||||||
$el.removeClass("ui-state-hover");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
oSchedTable = $sbTable.dataTable( {
|
oSchedTable = $sbTable.dataTable( {
|
||||||
"aoColumns": [
|
"aoColumns": [
|
||||||
/* checkbox */ {"mDataProp": "allowed", "sTitle": "", "sWidth": "15px", "sClass": "sb-checkbox"},
|
/* checkbox */ {"mDataProp": "allowed", "sTitle": "", "sWidth": "15px", "sClass": "sb-checkbox"},
|
||||||
|
@ -1090,6 +1068,29 @@ var AIRTIME = (function(AIRTIME){
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Icon hover states in the toolbar.
|
||||||
|
*/
|
||||||
|
$sbContent.on("mouseenter", ".btn-group #timeline-select", function(ev) {
|
||||||
|
$el = $(this).parent(),
|
||||||
|
$ch = $el.children('#timeline-select');
|
||||||
|
|
||||||
|
if ($el.hasClass("ui-state-disabled")) {
|
||||||
|
$ch.attr("disabled", "disabled");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$ch.removeAttr("disabled");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$sbContent.on("mouseleave", ".btn-group #timeline-select", function(ev) {
|
||||||
|
$el = $(this).parent();
|
||||||
|
|
||||||
|
if (!$el.hasClass("ui-state-disabled")) {
|
||||||
|
$el.removeClass("ui-state-hover");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//begin context menu initialization.
|
//begin context menu initialization.
|
||||||
$.contextMenu({
|
$.contextMenu({
|
||||||
selector: '.sb-content table tbody tr:not(.sb-empty, .sb-footer, .sb-header, .sb-record) td:not(.sb-checkbox, .sb-image)',
|
selector: '.sb-content table tbody tr:not(.sb-empty, .sb-footer, .sb-header, .sb-record) td:not(.sb-checkbox, .sb-image)',
|
||||||
|
|
Loading…
Reference in New Issue