Changeset 152

Show
Ignore:
Timestamp:
10/21/07 23:18:33 (15 months ago)
Author:
chris
Message:

Added the ability to manually force an automatic-refresh

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r151 r152  
    1919* Fixed a bug where only one processing item was showing after an auto 
    2020  refresh when HellaNZB was processing multiple items. [ticket:14] 
     21 
     22* Added the ability to manually call the auto-refresh feature. 
    2123 
    22241.8 
  • trunk/js/hellaworld.php

    r151 r152  
    148148        } 
    149149 
     150        function refreshNow() { 
     151                $.getJSON('index.php?refresher=1', function(json) { updateData(json); }); 
     152        } 
     153 
    150154        function showstatus(obj) { 
    151155                if (obj.options[obj.selectedIndex].value > 1) { 
  • trunk/style/main.css

    r102 r152  
    255255        display: inline; 
    256256        float: right; 
    257         margin-top: 2px; 
    258257} 
    259258 
  • trunk/templates/default.php

    r143 r152  
    137137                                <div id="controls"> 
    138138                                        <span id="refresher"> 
    139                                                 <input type="checkbox" name="refresh" id="refresh" onclick="if (this.checked) { createCookie('HHRefresh', 1, 30);startRefresher(); } else { createCookie('HHRefresh', 0, 30);stopRefresher(); }" /> <label for="refresh" class="refresher"><?php echo _('Refresh every 15 seconds'); ?></label> 
     139                                        <input type="checkbox" name="refresh" id="refresh" onclick="if (this.checked) { createCookie('HHRefresh', 1, 30);startRefresher(); } else { createCookie('HHRefresh', 0, 30);stopRefresher(); }" /> <label for="refresh" class="refresher"><?php echo _('Refresh every 15 seconds'); ?></label> <input type="button" value="<?php echo _('Refresh Now'); ?>" onclick="refreshNow();" /> 
    140140                                        </span> 
    141141                                        <?php if ($c->queueLength > 0): ?>