parent
b3654c62bc
commit
43ba92a535
|
@ -97,7 +97,7 @@ class LibraryController extends Zend_Controller_Action
|
||||||
$text = "Re-upload to Soundcloud";
|
$text = "Re-upload to Soundcloud";
|
||||||
}
|
}
|
||||||
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Library/upload-file-soundcloud/id/#id#',
|
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Library/upload-file-soundcloud/id/#id#',
|
||||||
'callback'=>'window["redrawDataTable"]'),'title' => $text);
|
'callback'=>"window['addProgressIcon']('$file_id')"),'title' => $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->isAdmin()) {
|
if ($user->isAdmin()) {
|
||||||
|
|
|
@ -153,11 +153,9 @@ function dtDrawCallback() {
|
||||||
addLibraryItemEvents();
|
addLibraryItemEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
function redrawDataTable() {
|
function addProgressIcon(id) {
|
||||||
var dt;
|
$("#au_"+id).find("td:eq(0)").append('<span id="'+id+'" class="small-icon progress"></span>')
|
||||||
|
$("span[id="+id+"]").addClass("progress");
|
||||||
dt = $('#library_display').dataTable();
|
|
||||||
dt.fnDraw(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkSCUploadStatus(){
|
function checkSCUploadStatus(){
|
||||||
|
@ -180,7 +178,7 @@ function addQtipToSCIcons(){
|
||||||
if($(this).hasClass("progress")){
|
if($(this).hasClass("progress")){
|
||||||
$(this).qtip({
|
$(this).qtip({
|
||||||
content: {
|
content: {
|
||||||
text: "Uploading in the progress..."
|
text: "Uploading in progress..."
|
||||||
},
|
},
|
||||||
position:{
|
position:{
|
||||||
adjust: {
|
adjust: {
|
||||||
|
|
|
@ -348,7 +348,7 @@ function addQtipToSCIcons(ele){
|
||||||
if($(ele).hasClass("progress")){
|
if($(ele).hasClass("progress")){
|
||||||
$(ele).qtip({
|
$(ele).qtip({
|
||||||
content: {
|
content: {
|
||||||
text: "Uploading in the progress..."
|
text: "Uploading in progress..."
|
||||||
},
|
},
|
||||||
position:{
|
position:{
|
||||||
adjust: {
|
adjust: {
|
||||||
|
|
Loading…
Reference in New Issue