couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/master to d466933
Date Wed, 02 Oct 2013 18:53:52 GMT
Updated Branches:
  refs/heads/master bb53f93f2 -> d466933f4


Temporary fix for Edit view issue with codemirror (oops)


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d466933f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d466933f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d466933f

Branch: refs/heads/master
Commit: d466933f4726a526ee1f941c3b7a593ed17e6939
Parents: bb53f93
Author: suelockwood <deathbearbrown@gmail.com>
Authored: Wed Oct 2 14:53:08 2013 -0400
Committer: suelockwood <deathbearbrown@gmail.com>
Committed: Wed Oct 2 14:53:14 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/views.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d466933f/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index 8036195..3fd47d4 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -75,7 +75,7 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, Codemirror, JSHint,
re
       if (!result) { return; }
 
       return this.database.destroy().done(function () {
-        app.router.navigate('/', {trigger: true});
+        app.router.navigate('#/_all_dbs', {trigger: true});
       });
     }
   });
@@ -1283,7 +1283,7 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, Codemirror,
JSHint, re
         mapFun.val(this.langTemplates[this.defaultLang].map);
         reduceFun.val(this.langTemplates[this.defaultLang].reduce);
       } else {
-        this.$('#index').hide();
+        setTimeout(function(){this.$('#index').hide();}, 300);
         this.$('#index-nav').parent().removeClass('active');
       }
 
@@ -1417,7 +1417,7 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, Codemirror,
JSHint, re
       var databaseName = this.database.id;
 
       this.database.destroy().then(function () {
-        FauxtonAPI.navigate('/');
+        FauxtonAPI.navigate('#/_all_dbs');
         FauxtonAPI.addNotification({
           msg: 'The database ' + databaseName + ' has been deleted.'
         });


Mime
View raw message