You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/11/05 12:22:55 UTC
fauxton commit: updated refs/heads/master to aff2283
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 67ad38f84 -> aff2283d8
Fix for API Urls on Stats, Config and Replication pages
Closes COUCHDB-2439
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/aff2283d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/aff2283d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/aff2283d
Branch: refs/heads/master
Commit: aff2283d8bdb45e606b0e60e6ae48b9f18d0b583
Parents: 67ad38f
Author: Benjamin Keen <be...@gmail.com>
Authored: Tue Nov 4 16:09:05 2014 -0800
Committer: Robert Kowalski <ro...@apache.org>
Committed: Wed Nov 5 12:22:38 2014 +0100
----------------------------------------------------------------------
app/addons/config/resources.js | 2 +-
app/addons/replication/resources.js | 2 +-
app/addons/stats/resources.js | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/aff2283d/app/addons/config/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/config/resources.js b/app/addons/config/resources.js
index 806615c..816b57c 100644
--- a/app/addons/config/resources.js
+++ b/app/addons/config/resources.js
@@ -62,7 +62,7 @@ function (app, FauxtonAPI) {
},
url: function () {
- return app.host + '/_config';
+ return window.location.origin + '/_config';
},
findEntryInSection: function (sectionName, entry) {
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/aff2283d/app/addons/replication/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/resources.js b/app/addons/replication/resources.js
index 14f255a..4e3988b 100644
--- a/app/addons/replication/resources.js
+++ b/app/addons/replication/resources.js
@@ -61,7 +61,7 @@ function (app, FauxtonAPI, ActiveTasks) {
Replication.Replicate = Backbone.Model.extend({
documentation: "replication_doc",
url: function(){
- return app.host + "/_replicate";
+ return window.location.origin + "/_replicate";
}
});
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/aff2283d/app/addons/stats/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/stats/resources.js b/app/addons/stats/resources.js
index b3c4ce1..fb59372 100644
--- a/app/addons/stats/resources.js
+++ b/app/addons/stats/resources.js
@@ -23,8 +23,9 @@ function (app, FauxtonAPI, backbone, _, Fauxton) {
Stats.Collection = Backbone.Collection.extend({
model: Backbone.Model,
- documentation: "stats",
- url: app.host+"/_stats",
+ documentation: 'stats',
+ url: window.location.origin + '/_stats',
+
parse: function(resp) {
return _.flatten(_.map(resp, function(doc, key) {
return _.map(doc, function(v, k){