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

@ -1,7 +1,5 @@
var previewWidth = 482,
previewHeight = 110,
USABILITY_HINT_HIDDEN_TOP = 102,
USABILITY_HINT_VISIBLE_TOP = 130;
previewHeight = 110;
$(document).ready(function() {
@ -14,7 +12,6 @@ $(document).ready(function() {
//this statement tells the browser to fade out any success message after 5 seconds
setTimeout(function(){$(".success").fadeOut("slow", function(){$(this).empty()});}, 5000);
adjustForUsabilityHint();
});
/*
@ -194,18 +191,12 @@ function removeSuccessMsg() {
$status.fadeOut("slow", function(){$status.empty()});
}
function adjustForUsabilityHint() {
var topVal = ($(".usability_hint").is(":visible") ? USABILITY_HINT_VISIBLE_TOP : USABILITY_HINT_HIDDEN_TOP);
$("#sub-menu").css("top", topVal);
}
function hideHint(h) {
h.hide("slow").addClass("hidden");
}
function showHint(h) {
h.show("slow").removeClass("hidden");
$(".wrapper, #sub-menu").css("top", USABILITY_HINT_VISIBLE_TOP);
}
function getUsabilityHint() {

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",