Changeset 151

Show
Ignore:
Timestamp:
10/21/07 22:54:51 (15 months ago)
Author:
chris
Message:

Fixed an auto-refresh bug relating to multiple processing items 14

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r150 r151  
    1616* Fixed a bug where finished items were still trying to be read despite 
    1717  the display of finished items being disabled. [ticket:15] 
     18 
     19* Fixed a bug where only one processing item was showing after an auto 
     20  refresh when HellaNZB was processing multiple items. [ticket:14] 
    1821 
    19221.8 
  • trunk/js/hellaworld.php

    r148 r151  
    9191                info += '<h2><?php echo _('Currently Processing'); ?></h2>'; 
    9292                if (json.processing != null) { 
    93                         info += '<div>' + json.processing + '</div>'; 
     93                        for (i = 0; json.processing && i < json.processing.length; i ++) { 
     94                                info += '<div>' + json.processing[i] + '</div>'; 
     95                        } 
    9496                } else { 
    9597                        info += '<div><?php echo _('Nothing'); ?></div>'; 
  • trunk/templates/json.php

    r94 r151  
    5151$hellainfo['transferRate'] = $c->transferRate; 
    5252if ($c->processCount > 0) { 
    53         $hellainfo['processing'] = htmlspecialchars($c->processing[0]); 
     53        $hellainfo['processing'] = array(); 
     54        foreach ($c->processing as $processing) { 
     55                $hellainfo['processing'][] = htmlspecialchars($processing); 
     56        } 
    5457} 
    5558$hellainfo['queuelength'] = $c->queueLength;