1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

notifier: add ability to update feeds in tt-rss

This commit is contained in:
Andrew Dolgov
2012-01-26 15:13:04 +04:00
parent aa60999b97
commit a689cd4770
3 changed files with 54 additions and 6 deletions
+19 -2
View File
@@ -40,6 +40,7 @@ function save() {
localStorage['show_badge'] = (f.show_badge.checked) ? "1" : "0";
localStorage['show_fresh'] = (f.show_fresh.checked) ? "1" : "0";
localStorage['single_user'] = (f.single_user.checked) ? "1" : "0";
localStorage['update_feeds'] = (f.update_feeds.checked) ? "1" : "0";
var d = new Date();
@@ -89,6 +90,11 @@ function init() {
else
f.single_user.checked = false;
if (localStorage['update_feeds'])
f.update_feeds.checked = localStorage['update_feeds'] == "1";
else
f.update_feeds.checked = false;
single_user_toggle();
var last_updated = $('last_updated');
@@ -97,8 +103,13 @@ function init() {
d.setTime(localStorage["last_updated"]);
last_updated.innerHTML = d;
var feeds_last_updated = $('feeds-last-updated');
d.setTime(localStorage["last_feeds_updated"]);
feeds_last_updated.innerHTML = d;
}
</script>
@@ -177,10 +188,16 @@ fieldset span.note {
<span class="note">(requires Tiny Tiny RSS 1.4.1 or trunk)</span>
</fieldset>
<fieldset>
<label>Periodically try to update tt-rss feeds:</label>
<input name="update_feeds" type="checkbox" value="1"/>
<span class="note">Please use this as a last resort method only in case you can't update your feeds <a target="_blank" href="http://tt-rss.org/wiki/UpdatingFeeds">in any other way</a>. Last updated: <span id='feeds-last-updated'>N/A</span></span>
</fieldset>
<input type="submit" value="Save"/>
</form>
<p>Copyright &copy; 2010
<p>Copyright &copy; 2010-2012
<a target="_blank" href="http://tt-rss.org">Andrew Dolgov</a>.
Licensed under GNU GPL version 2.</p>