Skip to content

Commit

Permalink
[#257] Set the timeout outside the recline source so that it can be u…
Browse files Browse the repository at this point in the history
…pdated without patching the source again
  • Loading branch information
domoritz committed Jan 30, 2013
1 parent 1fa0b1a commit eab929e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ckanext/reclinepreview/theme/public/preview_recline.js
Expand Up @@ -39,6 +39,8 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
.html(msg);
}

recline.Backend.DataProxy.timeout = 10000;

// 2 situations
// a) something was posted to the datastore - need to check for this
// b) csv or xls (but not datastore)
Expand Down
Expand Up @@ -423,7 +423,7 @@ this.recline.Backend.DataProxy = this.recline.Backend.DataProxy || {};
my.dataproxy_url = 'http://jsonpdataproxy.appspot.com';
// Timeout for dataproxy (after this time if no response we error)
// Needed because use JSONP so do not receive e.g. 500 errors
my.timeout = 10000;
my.timeout = 5000;

// ## load
//
Expand Down

0 comments on commit eab929e

Please sign in to comment.