CC-3870 : Now playing -> "Add n items" displays wrong "n" when drag and drop tracks to Time Line

This commit is contained in:
Naomi Aro 2012-05-23 17:40:56 +02:00
parent 0c233c3346
commit bf614dd729
3 changed files with 23 additions and 4 deletions

View file

@ -48,14 +48,20 @@ var AIRTIME = (function(AIRTIME){
$('#library_display tr.lib-audio, tr.lib-pl').draggable({
helper: function(){
var selected = mod.getChosenItemsLength(),
var $el = $(this),
selected = mod.getChosenItemsLength(),
container,
thead = $("#show_builder_table thead"),
colspan = thead.find("th").length,
width = thead.find("tr:first").width(),
message;
if (selected === 0 || selected === 1) {
//dragging an element that has an unselected checkbox.
if (mod.isChosenItem($el) === false) {
selected++;
}
if (selected === 1) {
message = "Adding 1 Item.";
}
else {