Added 2 parameters to limit the download size, and how many articles are downloaded by request to the server.
Alerts to detect size download anytime you connect to the server. This patch catch any exception in case data is not able to be stored in localStorage
This commit is contained in:
parent
bc1c99354f
commit
cfad4d4f4d
4 changed files with 66 additions and 18 deletions
|
@ -54,17 +54,18 @@ TinyTinyRSS.prototype.doOperation = function(operation, new_options, callback) {
|
|||
xhr.send(JSON.stringify(options));
|
||||
}
|
||||
|
||||
TinyTinyRSS.prototype.reload = function(callback) {
|
||||
this.getUnreadFeeds(callback, []);
|
||||
TinyTinyRSS.prototype.reload = function(callback,limit) {
|
||||
this.getUnreadFeeds(callback, 0, limit);
|
||||
};
|
||||
|
||||
TinyTinyRSS.prototype.getUnreadFeeds = function(callback, skip) {
|
||||
TinyTinyRSS.prototype.getUnreadFeeds = function(callback, skip, limit) {
|
||||
skip = skip.length;
|
||||
var options = {
|
||||
show_excerpt: false,
|
||||
view_mode: "unread",
|
||||
show_content: true,
|
||||
feed_id: -4,
|
||||
limit: limit || 0,
|
||||
skip: skip || 0
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue