CC-3463 : Usability improvements for timeline

This commit is contained in:
Naomi Aro 2012-03-23 18:27:47 +01:00
parent a77ac56621
commit 95f97ccc55

View file

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