invalidate local cache when view mode/limit is changed
This commit is contained in:
parent
93c841c4e5
commit
3c2d7945ae
13
tt-rss.js
13
tt-rss.js
|
@ -823,7 +823,14 @@ function collapse_feedlist() {
|
|||
} catch (e) {
|
||||
exception_error(e, "toggle_feedlist");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function viewModeChanged() {
|
||||
cache_empty();
|
||||
return viewCurrentFeed(0, '')
|
||||
}
|
||||
|
||||
function viewLimitChanged() {
|
||||
cache_empty();
|
||||
return viewCurrentFeed(0, '')
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ window.onload = init;
|
|||
<?php } ?>
|
||||
|
||||
<?php echo __('View:') ?>
|
||||
<select name="view_mode" onchange="viewCurrentFeed(0, '')">
|
||||
<select name="view_mode" onchange="viewModeChanged()">
|
||||
<option selected value="adaptive"><?php echo __('Adaptive') ?></option>
|
||||
<option value="all_articles"><?php echo __('All Articles') ?></option>
|
||||
<option value="marked"><?php echo __('Starred') ?></option>
|
||||
|
@ -202,7 +202,7 @@ window.onload = init;
|
|||
}
|
||||
|
||||
print_select_hash("limit", $def_art_limit, $limits,
|
||||
'onchange="viewCurrentFeed(0, \'\')"');
|
||||
'onchange="viewLimitChanged()"');
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -1508,6 +1508,10 @@ function cache_expire() {
|
|||
}
|
||||
}
|
||||
|
||||
function cache_empty() {
|
||||
article_cache = new Array();
|
||||
}
|
||||
|
||||
function cache_invalidate(id) {
|
||||
var i = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue