You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2014/11/11 17:05:16 UTC
fauxton commit: updated refs/heads/master to febdaf9
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 7f5bf886e -> febdaf9b3
Replaced couple of hardcoded vars with constants
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/febdaf9b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/febdaf9b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/febdaf9b
Branch: refs/heads/master
Commit: febdaf9b30187228a213a0c60b366427598b800c
Parents: 7f5bf88
Author: Benjamin Keen <be...@gmail.com>
Authored: Fri Nov 7 11:29:26 2014 -0800
Committer: Benjamin Keen <be...@gmail.com>
Committed: Tue Nov 11 08:01:28 2014 -0800
----------------------------------------------------------------------
app/addons/databases/views.js | 4 ++--
app/addons/fauxton/components.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/febdaf9b/app/addons/databases/views.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/views.js b/app/addons/databases/views.js
index 6f376da..a6fd499 100644
--- a/app/addons/databases/views.js
+++ b/app/addons/databases/views.js
@@ -233,7 +233,7 @@ function(app, Components, FauxtonAPI, Databases) {
hideTray: function () {
var $tray = this.$('.tray');
- $tray.velocity('reverse', 250, function () {
+ $tray.velocity('reverse', FauxtonAPI.constants.TRAY_TOGGLE_SPEED, function () {
$tray.hide();
});
this.$('#add-new-database').removeClass('enabled');
@@ -243,7 +243,7 @@ function(app, Components, FauxtonAPI, Databases) {
// boo! to be refactored out later (see COUCHDB-2401)
FauxtonAPI.Events.trigger("APIbar:closeTray");
- this.$('.tray').velocity('transition.slideDownIn', 250);
+ this.$('.tray').velocity('transition.slideDownIn', FauxtonAPI.constants.TRAY_TOGGLE_SPEED);
this.$('#add-new-database').addClass('enabled');
},
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/febdaf9b/app/addons/fauxton/components.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/components.js b/app/addons/fauxton/components.js
index 787436a..a148f21 100644
--- a/app/addons/fauxton/components.js
+++ b/app/addons/fauxton/components.js
@@ -139,7 +139,7 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) {
hideAPIbar: function () {
var $navBar = this.$('.api-navbar');
- $navBar.velocity("reverse", 250, function () {
+ $navBar.velocity("reverse", FauxtonAPI.constants.TRAY_TOGGLE_SPEED, function () {
$navBar.hide();
});
this.$('.api-url-btn').removeClass('enabled');
@@ -150,7 +150,7 @@ function(app, FauxtonAPI, ace, spin, ZeroClipboard) {
//and the api bar is visible.
showAPIbar: function() {
if (!this.navbarVisible()) {
- this.$('.api-navbar').velocity("transition.slideDownIn", 250);
+ this.$('.api-navbar').velocity("transition.slideDownIn", FauxtonAPI.constants.TRAY_TOGGLE_SPEED);
this.$('.api-url-btn').addClass('enabled');
}
},