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:
parent
4a7f52e22a
commit
12a5f17ff5
3 changed files with 17 additions and 6 deletions
|
@ -28,6 +28,13 @@ var AIRTIME = (function(AIRTIME){
|
||||||
mod.fnRowCallback = function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
mod.fnRowCallback = function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||||
var $nRow = $(nRow);
|
var $nRow = $(nRow);
|
||||||
|
|
||||||
|
if (aData.ftype === "audioclip") {
|
||||||
|
$nRow.addClass("lib-audio");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$nRow.addClass("lib-pl");
|
||||||
|
}
|
||||||
|
|
||||||
$nRow.attr("id", aData["tr_id"])
|
$nRow.attr("id", aData["tr_id"])
|
||||||
.data("aData", aData)
|
.data("aData", aData)
|
||||||
.data("screen", "playlist");
|
.data("screen", "playlist");
|
||||||
|
@ -38,7 +45,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
mod.redrawChosen();
|
mod.redrawChosen();
|
||||||
mod.checkToolBarIcons();
|
mod.checkToolBarIcons();
|
||||||
|
|
||||||
$('#library_display tr[id ^= "au"]').draggable({
|
$('#library_display tr.lib-audio').draggable({
|
||||||
helper: function(){
|
helper: function(){
|
||||||
|
|
||||||
mod.selectItem($(this));
|
mod.selectItem($(this));
|
||||||
|
|
|
@ -28,6 +28,13 @@ var AIRTIME = (function(AIRTIME){
|
||||||
mod.fnRowCallback = function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
mod.fnRowCallback = function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||||
var $nRow = $(nRow);
|
var $nRow = $(nRow);
|
||||||
|
|
||||||
|
if (aData.ftype === "audioclip") {
|
||||||
|
$nRow.addClass("lib-audio");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$nRow.addClass("lib-pl");
|
||||||
|
}
|
||||||
|
|
||||||
$nRow.attr("id", aData["tr_id"])
|
$nRow.attr("id", aData["tr_id"])
|
||||||
.data("aData", aData)
|
.data("aData", aData)
|
||||||
.data("screen", "timeline");
|
.data("screen", "timeline");
|
||||||
|
@ -38,7 +45,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
mod.redrawChosen();
|
mod.redrawChosen();
|
||||||
mod.checkToolBarIcons();
|
mod.checkToolBarIcons();
|
||||||
|
|
||||||
$('#library_display tr:not(:first)').draggable({
|
$('#library_display tr.lib-audio, tr.lib-pl').draggable({
|
||||||
helper: function(){
|
helper: function(){
|
||||||
|
|
||||||
mod.selectItem($(this));
|
mod.selectItem($(this));
|
||||||
|
|
|
@ -241,10 +241,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
"bServerSide": true,
|
"bServerSide": true,
|
||||||
|
|
||||||
"aLengthMenu": [[5, 10, 15, 20, 25, 50, 100], [5, 10, 15, 20, 25, 50, 100]],
|
"aLengthMenu": [[5, 10, 15, 20, 25, 50, 100], [5, 10, 15, 20, 25, 50, 100]],
|
||||||
|
|
||||||
//"sScrollX": "100%",
|
|
||||||
//"sScrollXInner": "110%",
|
|
||||||
|
|
||||||
"bStateSave": true,
|
"bStateSave": true,
|
||||||
"fnStateSaveParams": function (oSettings, oData) {
|
"fnStateSaveParams": function (oSettings, oData) {
|
||||||
//remove oData components we don't want to save.
|
//remove oData components we don't want to save.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue