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