summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shorin <kxepal@apache.org>2014-02-20 03:09:32 +0400
committerAlexander Shorin <kxepal@apache.org>2014-02-20 03:09:32 +0400
commitdea6cef58b4074d8b82270fe23928231bf1863f7 (patch)
tree4d5e59106b7fdb9c96cc7e598c9a3df96c1a7f81
parent5d17c204dbcefc389420fef79810a58be91cde71 (diff)
downloadcouchdb-dea6cef58b4074d8b82270fe23928231bf1863f7.tar.gz
Fix Fauxton's define paths to match mixedCase style
As bonus trailing spaces were striped.
-rw-r--r--src/fauxton/app/addons/auth/resources.js20
-rw-r--r--src/fauxton/app/addons/documents/views.js4
2 files changed, 12 insertions, 12 deletions
diff --git a/src/fauxton/app/addons/auth/resources.js b/src/fauxton/app/addons/auth/resources.js
index ed06175e0..2e359c95b 100644
--- a/src/fauxton/app/addons/auth/resources.js
+++ b/src/fauxton/app/addons/auth/resources.js
@@ -13,7 +13,7 @@
define([
"app",
"api",
- "core/CouchdbSession"
+ "core/couchdbSession"
],
function (app, FauxtonAPI, CouchdbSession) {
@@ -55,7 +55,7 @@ function (app, FauxtonAPI, CouchdbSession) {
_.bindAll(this);
- this.messages = _.extend({}, {
+ this.messages = _.extend({}, {
missingCredentials: 'Username or password cannot be blank.',
passwordsNotMatch: 'Passwords do not match.',
incorrectCredentials: 'Incorrect username or password.',
@@ -88,7 +88,7 @@ function (app, FauxtonAPI, CouchdbSession) {
userRoles: function () {
var user = this.user();
- if (user && user.roles) {
+ if (user && user.roles) {
return user.roles;
}
@@ -157,8 +157,8 @@ function (app, FauxtonAPI, CouchdbSession) {
return $.ajax({
cache: false,
- type: "POST",
- url: app.host + "/_session",
+ type: "POST",
+ url: app.host + "/_session",
dataType: "json",
data: {name: username, password: password}
}).then(function () {
@@ -170,10 +170,10 @@ function (app, FauxtonAPI, CouchdbSession) {
var that = this;
return $.ajax({
- type: "DELETE",
- url: app.host + "/_session",
+ type: "DELETE",
+ url: app.host + "/_session",
dataType: "json",
- username : "_",
+ username : "_",
password : "_"
}).then(function () {
return that.fetchUser({forceFetch: true });
@@ -315,7 +315,7 @@ function (app, FauxtonAPI, CouchdbSession) {
}
});
- Auth.NavLink = FauxtonAPI.View.extend({
+ Auth.NavLink = FauxtonAPI.View.extend({
template: 'addons/auth/templates/nav_link_title',
tagName: 'li',
@@ -331,7 +331,7 @@ function (app, FauxtonAPI, CouchdbSession) {
}
});
- Auth.NavDropDown = FauxtonAPI.View.extend({
+ Auth.NavDropDown = FauxtonAPI.View.extend({
template: 'addons/auth/templates/nav_dropdown',
beforeRender: function () {
diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js
index 62d876113..7282ed797 100644
--- a/src/fauxton/app/addons/documents/views.js
+++ b/src/fauxton/app/addons/documents/views.js
@@ -21,7 +21,7 @@ define([
"addons/pouchdb/base",
// Libs
- "addons/Fauxton/resizeColumns",
+ "addons/fauxton/resizeColumns",
// Plugins
"plugins/beautify",
@@ -952,7 +952,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
//not complete doc. Cannot work with it
return;
}
-
+
var keyChecked = ["_id"];
if (model.get("_rev")) { keyChecked.push("_rev");}