CC-3724 : Now Playing -> Timeline view: to drag and drop single file very fast will block adding the same file

This commit is contained in:
Naomi Aro 2012-05-04 11:50:51 +02:00
parent 4a7f52e22a
commit 12a5f17ff5
3 changed files with 17 additions and 6 deletions

View File

@ -28,6 +28,13 @@ var AIRTIME = (function(AIRTIME){
mod.fnRowCallback = function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
var $nRow = $(nRow);
if (aData.ftype === "audioclip") {
$nRow.addClass("lib-audio");
}
else {
$nRow.addClass("lib-pl");
}
$nRow.attr("id", aData["tr_id"])
.data("aData", aData)
.data("screen", "playlist");
@ -38,7 +45,7 @@ var AIRTIME = (function(AIRTIME){
mod.redrawChosen();
mod.checkToolBarIcons();
$('#library_display tr[id ^= "au"]').draggable({
$('#library_display tr.lib-audio').draggable({
helper: function(){
mod.selectItem($(this));

View File

@ -28,6 +28,13 @@ var AIRTIME = (function(AIRTIME){
mod.fnRowCallback = function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
var $nRow = $(nRow);
if (aData.ftype === "audioclip") {
$nRow.addClass("lib-audio");
}
else {
$nRow.addClass("lib-pl");
}
$nRow.attr("id", aData["tr_id"])
.data("aData", aData)
.data("screen", "timeline");
@ -38,7 +45,7 @@ var AIRTIME = (function(AIRTIME){
mod.redrawChosen();
mod.checkToolBarIcons();
$('#library_display tr:not(:first)').draggable({
$('#library_display tr.lib-audio, tr.lib-pl').draggable({
helper: function(){
mod.selectItem($(this));

View File

@ -241,10 +241,7 @@ var AIRTIME = (function(AIRTIME) {
"bServerSide": true,
"aLengthMenu": [[5, 10, 15, 20, 25, 50, 100], [5, 10, 15, 20, 25, 50, 100]],
//"sScrollX": "100%",
//"sScrollXInner": "110%",
"bStateSave": true,
"fnStateSaveParams": function (oSettings, oData) {
//remove oData components we don't want to save.