Changeset 23360


Ignore:
Timestamp:
06/19/13 12:53:31 (7 years ago)
Author:
mistic100
Message:

the fix for url was really bad

Location:
extensions/BatchDownloader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r23321 r23360  
    272272    } 
    273273     
    274     $root_url = get_root_url(); 
    275274    $uid = '&b='.time(); 
    276275     
     
    341340        if ($filemtime===false || $filemtime<$last_mod_time || $filemtime<$src_mtime) 
    342341        { 
    343           $urls[] = $root_url.$derivative->get_url().$uid; 
     342          $urls[] = $derivative->get_url().$uid; 
    344343        } 
    345344        else if ($update && in_array($row['id'], $to_update)) 
  • extensions/BatchDownloader/template/init_zip.tpl

    r23359 r23360  
    4444  } 
    4545   
    46   jQuery.manageAjax.add("queued", { 
     46  queuedManager.add({ 
    4747    type: 'GET',  
    48     url: '{$ROOT_URL}'+derivatives.elements[ derivatives.done ]+'&ajaxload=true',  
     48    url: derivatives.elements[ derivatives.done ],  
    4949    dataType: 'json', 
    50     success: function(data) { 
     50    data: { ajaxload: 'true' }, 
     51    success: function() { 
    5152      derivatives.done++; 
    5253      progress(); 
    5354      next_derivative(); 
    5455    }, 
    55     error: function(data) { 
     56    error: function() { 
    5657      derivatives.done++; 
    5758      progress(); 
Note: See TracChangeset for help on using the changeset viewer.