mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing issue around showing too many Oh Nos on abort.
This commit is contained in:
parent
2fe7160bd9
commit
7907022d0d
5 changed files with 11 additions and 3 deletions
|
@ -341,7 +341,7 @@ def load_single_feed(request, feed_id):
|
|||
page = int(request.REQUEST.get('page', 1))
|
||||
dupe_feed_id = None
|
||||
userstories_db = None
|
||||
|
||||
|
||||
if page: offset = limit * (page-1)
|
||||
if not feed_id: raise Http404
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ def numCPUs():
|
|||
bind = "127.0.0.1:8000"
|
||||
pidfile = "/home/sclay/newsblur/logs/gunicorn.pid"
|
||||
logfile = "/home/sclay/newsblur/logs/production.log"
|
||||
accesslog = "/home/sclay/newsblur/logs/production.log"
|
||||
errorlog = "/home/sclay/newsblur/logs/errors.log"
|
||||
loglevel = "debug"
|
||||
name = "newsblur"
|
||||
timeout = 60
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* project-site: http://plugins.jquery.com/project/AjaxManager
|
||||
* repository: http://github.com/aFarkas/Ajaxmanager
|
||||
* @author Alexander Farkas
|
||||
* @version 3.11
|
||||
* @version 3.12
|
||||
* Copyright 2010, Alexander Farkas
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
*/
|
||||
|
@ -40,7 +40,7 @@
|
|||
this.name = name;
|
||||
this.qName = name;
|
||||
|
||||
this.opts = $.extend({}, $.ajaxSettings, $.manageAjax.defaults, opts);
|
||||
this.opts = $.extend({}, $.manageAjax.defaults, opts);
|
||||
if(opts && opts.queue && opts.queue !== true && typeof opts.queue === 'string' && opts.queue !== 'clear'){
|
||||
this.qName = opts.queue;
|
||||
}
|
||||
|
@ -315,6 +315,7 @@
|
|||
abortIsNoSuccess: true,
|
||||
maxRequests: 1,
|
||||
cacheResponse: false,
|
||||
async: true,
|
||||
domCompleteTrigger: false,
|
||||
domSuccessTrigger: false,
|
||||
preventDoubleRequests: true,
|
||||
|
|
|
@ -93,6 +93,10 @@ NEWSBLUR.AssetModel.Reader.prototype = {
|
|||
},
|
||||
error: function(e, textStatus, errorThrown) {
|
||||
NEWSBLUR.log(['AJAX Error', textStatus, errorThrown]);
|
||||
if (errorThrown == 'abort') {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($.isFunction(error_callback)) {
|
||||
error_callback();
|
||||
} else if ($.isFunction(callback)) {
|
||||
|
|
|
@ -2099,6 +2099,7 @@
|
|||
},
|
||||
|
||||
show_stories_error: function() {
|
||||
console.log(["show_stories_error", arguments]);
|
||||
this.hide_stories_progress_bar();
|
||||
|
||||
var $error = $.make('div', { className: 'NB-feed-error' }, [
|
||||
|
|
Loading…
Add table
Reference in a new issue