CC-3174 : showbuilder
edge checking on empty datatables.
This commit is contained in:
parent
f61afb0216
commit
9e1b3e7e6e
1 changed files with 3 additions and 1 deletions
|
@ -429,7 +429,9 @@ var AIRTIME = (function(AIRTIME){
|
||||||
var prev = ui.item.prev();
|
var prev = ui.item.prev();
|
||||||
|
|
||||||
//can't add items outside of shows.
|
//can't add items outside of shows.
|
||||||
if (prev.hasClass("sb-footer") || prev.find("td:first").hasClass("dataTables_empty")) {
|
if (prev.hasClass("sb-footer")
|
||||||
|
|| prev.find("td:first").hasClass("dataTables_empty")
|
||||||
|
|| prev.length === 0) {
|
||||||
alert("Cannot schedule outside a show.");
|
alert("Cannot schedule outside a show.");
|
||||||
ui.item.remove();
|
ui.item.remove();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue