CC-3463 : Usability improvements for timeline
This commit is contained in:
parent
a77ac56621
commit
95f97ccc55
|
@ -422,7 +422,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
if (tr.length > 0) {
|
||||
//enable deleting of overbooked tracks.
|
||||
AIRTIME.button.enableButton("sb-button-trim");
|
||||
}
|
||||
}
|
||||
},
|
||||
"fnHeaderCallback": function(nHead) {
|
||||
$(nHead).find("input[type=checkbox]").attr("checked", false);
|
||||
|
@ -732,11 +732,15 @@ var AIRTIME = (function(AIRTIME){
|
|||
//set things like a reference to the table.
|
||||
AIRTIME.showbuilder.init(oTable);
|
||||
|
||||
//add event to cursors.
|
||||
$sbTable.find("tbody").on("click", "div.marker", function(event){
|
||||
//add events to cursors.
|
||||
$sbTable.find("tbody").on("click", "div.marker", function(event) {
|
||||
var tr = $(this).parents("tr"),
|
||||
cursorSelClass = "cursor-selected-row";
|
||||
|
||||
if (event.ctrlKey === false) {
|
||||
$sbTable.find('.'+cursorSelClass).removeClass(cursorSelClass);
|
||||
}
|
||||
|
||||
if (tr.hasClass(cursorSelClass)) {
|
||||
tr.removeClass(cursorSelClass);
|
||||
}
|
||||
|
@ -746,7 +750,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
//check if add button can still be enabled.
|
||||
AIRTIME.library.events.enableAddButtonCheck();
|
||||
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue