You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2014/02/13 10:00:11 UTC
couchdb commit: updated refs/heads/master to e54d1d8
Updated Branches:
refs/heads/master 72adab904 -> e54d1d8fc
Fauxton: Fix login issue
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e54d1d8f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e54d1d8f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e54d1d8f
Branch: refs/heads/master
Commit: e54d1d8fc0f36ea737d2693364ee83324a98cddf
Parents: 72adab9
Author: Garren Smith <ga...@gmail.com>
Authored: Thu Feb 13 10:59:45 2014 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Thu Feb 13 10:59:45 2014 +0200
----------------------------------------------------------------------
src/fauxton/app/addons/auth/resources.js | 2 ++
src/fauxton/app/core/couchdbSession.js | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/e54d1d8f/src/fauxton/app/addons/auth/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/auth/resources.js b/src/fauxton/app/addons/auth/resources.js
index 0c9b1f5..ed06175 100644
--- a/src/fauxton/app/addons/auth/resources.js
+++ b/src/fauxton/app/addons/auth/resources.js
@@ -53,6 +53,8 @@ function (app, FauxtonAPI, CouchdbSession) {
initialize: function (options) {
if (!options) { options = {}; }
+ _.bindAll(this);
+
this.messages = _.extend({}, {
missingCredentials: 'Username or password cannot be blank.',
passwordsNotMatch: 'Passwords do not match.',
http://git-wip-us.apache.org/repos/asf/couchdb/blob/e54d1d8f/src/fauxton/app/core/couchdbSession.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/core/couchdbSession.js b/src/fauxton/app/core/couchdbSession.js
index c59a8fc..747ef3e 100644
--- a/src/fauxton/app/core/couchdbSession.js
+++ b/src/fauxton/app/core/couchdbSession.js
@@ -34,8 +34,8 @@ function (FauxtonAPI) {
fetch = _.bind(this.fetchOnce, this);
if (options.forceFetch) {
- fetch = this.fetch;
- Backbone.fetchCache.clearItem(_.result(this.url));
+ fetch = _.bind(this.fetch, this);
+ Backbone.fetchCache.clearItem(_.result(this, 'url'));
}
return fetch(opt).then(function () {