SAAS-1094 - fix selector for scheduled show selection + context menu

This commit is contained in:
Duncan Sommerville 2015-09-29 12:27:45 -04:00
parent f4fad13eb8
commit c2cd768398
1 changed files with 5 additions and 5 deletions

View File

@ -781,7 +781,7 @@ var AIRTIME = (function(AIRTIME){
"bScrollCollapseY": false "bScrollCollapseY": false
}); });
$sbTable.find("tbody").on("mousedown", "tr:not(.sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td.sb-checkbox", function(ev) { $sbTable.find("tbody").on("mousedown", "tr:not(.sb-not-allowed, .sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td.sb-checkbox", function(ev) {
var $tr = $(this).parent(), var $tr = $(this).parent(),
// Get the ID of the selected row // Get the ID of the selected row
$rowId = $tr.attr("id"); $rowId = $tr.attr("id");
@ -818,7 +818,7 @@ var AIRTIME = (function(AIRTIME){
$previouslySelected = $tr; $previouslySelected = $tr;
}); });
$sbTable.find("tbody").on("mousedown", "tr:not(.sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td:not(.sb-checkbox)", function(ev) { $sbTable.find("tbody").on("mousedown", "tr:not(.sb-not-allowed, .sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td:not(.sb-checkbox)", function(ev) {
var $tr = $(this).parent(), var $tr = $(this).parent(),
// Get the ID of the selected row // Get the ID of the selected row
$rowId = $tr.attr("id"); $rowId = $tr.attr("id");
@ -866,7 +866,7 @@ var AIRTIME = (function(AIRTIME){
$previouslySelected = $tr; $previouslySelected = $tr;
}); });
$sbTable.find("tbody").on("click", "tr:not(.sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td.sb-checkbox", function() { $sbTable.find("tbody").on("click", "tr:not(.sb-not-allowed, .sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td.sb-checkbox", function() {
var tr = $(this).parent(); var tr = $(this).parent();
if (flagForDeselection) { if (flagForDeselection) {
flagForDeselection = false; flagForDeselection = false;
@ -882,7 +882,7 @@ var AIRTIME = (function(AIRTIME){
selectedRows = $("." + SB_SELECTED_CLASS); selectedRows = $("." + SB_SELECTED_CLASS);
}); });
$sbTable.find("tbody").on("click", "tr:not(.sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td:not(.sb-checkbox)", function(e) { $sbTable.find("tbody").on("click", "tr:not(.sb-not-allowed, .sb-header, .sb-footer, .sb-past, .sb-empty, :has(td.dataTables_empty)) > td:not(.sb-checkbox)", function(e) {
var tr = $(this).parent(); var tr = $(this).parent();
if (flagForDeselection) { if (flagForDeselection) {
flagForDeselection = false; flagForDeselection = false;
@ -902,7 +902,7 @@ var AIRTIME = (function(AIRTIME){
//begin context menu initialization. //begin context menu initialization.
$.contextMenu({ $.contextMenu({
selector: '#show_builder tr.lib-audio:not(.sb-past)', selector: '#show_builder tr.lib-audio:not(.sb-not-allowed, .sb-past)',
trigger: "right", trigger: "right",
build: function($el, e) { build: function($el, e) {