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"; $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()) {

View File

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

View File

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