Changeset 1030 for trunk/rss/ajax.php

Show
Ignore:
Timestamp:
11/25/05 16:23:52 (3 years ago)
Author:
sdcosta
Message:

Hack to fix #179 , #144 and partially #216
Instead of determining where to go via ajax, we just get the javascript
to click the "markall as read" button. Currently we are not changing the
markReadIds but maybe we should if there are problems in the future...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/ajax.php

    r1027 r1030  
    441441        
    442442       // remove parent elements (heading, ul) if all the children are gone 
    443        if (ul.getElementsByTagName('li').length == 0) { 
     443       if (!redirect && (ul.getElementsByTagName('li').length == 0)) { 
    444444        pn = ul.parentNode; 
    445445         
     
    455455        
    456456       if (redirect) { 
    457         self.setTimeout('setRedirect()', 1000); 
     457    if (t = document.getElementById("_markReadButton")) { 
     458        // Maybe we should fix the array of ids also... 
     459        self.setTimeout('t.click()', 1000); 
     460    }else{ 
     461             self.setTimeout('setRedirect()', 1000); 
     462    } 
    458463       } 
    459464    }