CC-6084 - fix calendar drag and drop

This commit is contained in:
Duncan Sommerville 2015-08-21 11:09:45 -04:00
parent 48f1c5b9a4
commit 604b81071c
5 changed files with 30 additions and 40 deletions

View file

@ -849,7 +849,7 @@ var AIRTIME = (function(AIRTIME) {
AIRTIME.library.dblClickAdd(data, data.ftype);
});
$libTable.find("tbody").on("mousedown", "tr > td.library_checkbox", function(ev) {
$libTable.find("tbody").on("mousedown", "tr.lib-audio > td.library_checkbox", function(ev) {
var $tr = $(this).parent(),
// Get the ID of the selected row
$rowId = $tr.attr("id");
@ -878,7 +878,7 @@ var AIRTIME = (function(AIRTIME) {
}
});
$libTable.find("tbody").on("mousedown", "tr > td:not(.library_checkbox)", function(ev) {
$libTable.find("tbody").on("mousedown", "tr.lib-audio > td:not(.library_checkbox)", function(ev) {
var $tr = $(this).parent(),
// Get the ID of the selected row
$rowId = $tr.attr("id");
@ -945,7 +945,7 @@ var AIRTIME = (function(AIRTIME) {
// begin context menu initialization.
AIRTIME.library.ctxMenu = $.contextMenu({
selector: '#library_display tr:has(td)',
selector: '#library_display tr.lib-audio:has(td)',
//trigger: "left",
trigger: "custom",