CC-3799 : Dragging and dropping a track from the library causes the track in the library to be selected

This commit is contained in:
Naomi Aro 2012-05-10 14:19:36 +02:00
parent 9bb8e2ad8e
commit e61924de37
5 changed files with 38 additions and 29 deletions

View file

@ -699,14 +699,10 @@ var AIRTIME = (function(AIRTIME){
var aItems = [];
aItems = AIRTIME.library.getSelectedData();
//if nothing is checked select the dragged item.
if (aItems.length === 0) {
aItems.push(ui.item.data("aData"));
}
origTrs = aItems;
html = ui.helper.html();
AIRTIME.library.removeFromChosen(ui.item);
};
fnUpdate = function(event, ui) {
@ -764,11 +760,11 @@ var AIRTIME = (function(AIRTIME){
height = trfirst.height(),
message;
//if nothing is checked select the dragged item.
if (selected.length === 0) {
selected = [item.data("aData")];
}
//if nothing is checked select the dragged item.
if (selected.length === 0) {
selected = [item.data("aData")];
}
if (selected.length === 1) {
message = "Moving "+selected.length+" Item.";
}