CC-2866: progress icon not showing

- fixed
This commit is contained in:
James 2011-09-22 12:15:03 -04:00
parent b3654c62bc
commit 43ba92a535
3 changed files with 6 additions and 8 deletions

View File

@ -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()) {

View File

@ -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: {

View File

@ -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: {