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