CC-3355 : Timeline/Library: Select all in the library, drag to empty show --> nothing is added
This commit is contained in:
parent
4286de7b42
commit
1864447d7e
airtime_mvc/public/js/airtime/library/events
|
@ -20,7 +20,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
$('#library_display tr[id ^= "au"]').draggable({
|
$('#library_display tr[id ^= "au"]').draggable({
|
||||||
helper: function(){
|
helper: function(){
|
||||||
var selected = $('#library_display input:checked').parents('tr[id^="au"]');
|
var selected = $('#library_display tr:not(:first) input:checked').parents('tr[id^="au"]');
|
||||||
if (selected.length === 0) {
|
if (selected.length === 0) {
|
||||||
selected = $(this);
|
selected = $(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
$('#library_display tr:not(:first)').draggable({
|
$('#library_display tr:not(:first)').draggable({
|
||||||
helper: function(){
|
helper: function(){
|
||||||
var selected = $('#library_display input:checked').parents('tr');
|
var selected = $('#library_display tr:not(:first) input:checked').parents('tr');
|
||||||
if (selected.length === 0) {
|
if (selected.length === 0) {
|
||||||
selected = $(this);
|
selected = $(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue