Ticket #403: side_cache_fix.patch

File side_cache_fix.patch, 0.7 kB (added by Jazz <jazz@…>, 2 years ago)

A fix

  • ajax.php

    === ajax.php
    ==================================================================
     
    258258 
    259259cs = getCookie('side'); 
    260260if (!cs) { 
    261         cs = '1'; 
     261        cs = 'FeedList'; 
    262262} 
    263263document.currentSide = cs; 
    264264document.currentSideCache = new Array(); 
    265 for (i=0;i<3;i++) { 
    266         document.currentSideCache[i] = null; 
    267 } 
    268265 
    269266 
    270267function _side(what) { 
     
    273270        }  
    274271         
    275272        document.currentSideCache[document.currentSide] = document.getElementById('channels').innerHTML; 
    276         if ((content = document.currentSideCache[what]) != null) {       
     273        if ((content = document.currentSideCache[what])) {       
    277274                _setSideContent_cb( what + "#@#" + content ); 
    278275        } else { 
    279276                x___exp__getSideContent(what, _setSideContent_cb);