parent
348011dbc3
commit
64fe303b20
|
@ -1,4 +1,4 @@
|
||||||
var AIRTIME = (function(AIRTIME){
|
var AIRTIME = (function(AIRTIME){
|
||||||
var mod,
|
var mod,
|
||||||
libraryInit;
|
libraryInit;
|
||||||
|
|
||||||
|
@ -459,9 +459,9 @@
|
||||||
|
|
||||||
return AIRTIME;
|
return AIRTIME;
|
||||||
|
|
||||||
}(AIRTIME || {}));
|
}(AIRTIME || {}));
|
||||||
|
|
||||||
function addToolBarButtonsLibrary(aButtons) {
|
function addToolBarButtonsLibrary(aButtons) {
|
||||||
var i,
|
var i,
|
||||||
length = aButtons.length,
|
length = aButtons.length,
|
||||||
libToolBar = $(".library_toolbar"),
|
libToolBar = $(".library_toolbar"),
|
||||||
|
@ -501,9 +501,9 @@
|
||||||
}(i));
|
}(i));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkImportStatus(){
|
function checkImportStatus(){
|
||||||
$.getJSON('/Preference/is-import-in-progress', function(data){
|
$.getJSON('/Preference/is-import-in-progress', function(data){
|
||||||
var div = $('#import_status');
|
var div = $('#import_status');
|
||||||
if (data == true){
|
if (data == true){
|
||||||
|
@ -513,9 +513,9 @@
|
||||||
div.hide();
|
div.hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function addProgressIcon(id) {
|
function addProgressIcon(id) {
|
||||||
var tr = $("#au_"+id),
|
var tr = $("#au_"+id),
|
||||||
span;
|
span;
|
||||||
|
|
||||||
|
@ -529,9 +529,9 @@
|
||||||
tr.find("td.library_title")
|
tr.find("td.library_title")
|
||||||
.append('<span class="small-icon progress"></span>');
|
.append('<span class="small-icon progress"></span>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkSCUploadStatus(){
|
function checkSCUploadStatus(){
|
||||||
|
|
||||||
var url = '/Library/get-upload-to-soundcloud-status';
|
var url = '/Library/get-upload-to-soundcloud-status';
|
||||||
|
|
||||||
|
@ -553,9 +553,9 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function addQtipToSCIcons(){
|
function addQtipToSCIcons(){
|
||||||
$(".progress, .soundcloud, .sc-error").live('mouseover', function(){
|
$(".progress, .soundcloud, .sc-error").live('mouseover', function(){
|
||||||
|
|
||||||
var id = $(this).parent().parent().data("aData").id;
|
var id = $(this).parent().parent().data("aData").id;
|
||||||
|
@ -634,24 +634,24 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var audio_preview_window = null;
|
||||||
|
|
||||||
|
function open_audio_preview(name, filename, index) {
|
||||||
|
url = 'Playlist/audio-preview-player/name/'+name+'/filename/'+filename+'/index/'+index;
|
||||||
|
//$.post(baseUri+'Playlist/audio-preview-player', {fileName: fileName, cueIn: cueIn, cueOut: cueOut, fadeIn: fadeIn, fadeInFileName: fadeInFileName, fadeOut: fadeOut, fadeOutFileName: fadeOutFileName})
|
||||||
|
if (audio_preview_window == null || audio_preview_window.closed){
|
||||||
|
audio_preview_window = window.open(url, 'Audio Player', 'width=400,height=95');
|
||||||
|
} else if (!audio_preview_window.closed) {
|
||||||
|
audio_preview_window.play(name, filename);
|
||||||
|
} else {
|
||||||
|
console.log("something else : "+baseUrl+url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Set the play button to pause.
|
||||||
|
//var elemID = "spl_"+elemIndexString;
|
||||||
|
//$('#'+elemID+' div.list-item-container a span').attr("class", "ui-icon ui-icon-pause");
|
||||||
|
|
||||||
var audio_preview_window = null;
|
return false;
|
||||||
|
}
|
||||||
function open_audio_preview(name, filename, index) {
|
|
||||||
url = 'Playlist/audio-preview-player/name/'+name+'/filename/'+filename+'/index/'+index;
|
|
||||||
//$.post(baseUri+'Playlist/audio-preview-player', {fileName: fileName, cueIn: cueIn, cueOut: cueOut, fadeIn: fadeIn, fadeInFileName: fadeInFileName, fadeOut: fadeOut, fadeOutFileName: fadeOutFileName})
|
|
||||||
if (audio_preview_window == null || audio_preview_window.closed){
|
|
||||||
audio_preview_window = window.open(url, 'Audio Player', 'width=400,height=95');
|
|
||||||
} else if (!audio_preview_window.closed) {
|
|
||||||
audio_preview_window.play(name, filename);
|
|
||||||
} else {
|
|
||||||
console.log("something else : "+baseUrl+url);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Set the play button to pause.
|
|
||||||
//var elemID = "spl_"+elemIndexString;
|
|
||||||
//$('#'+elemID+' div.list-item-container a span').attr("class", "ui-icon ui-icon-pause");
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
Loading…
Reference in New Issue