CC-3463 : Usability improvements for timeline
This commit is contained in:
parent
a77ac56621
commit
95f97ccc55
1 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue