You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/10/02 20:53:52 UTC

git commit: updated refs/heads/master to d466933

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 <de...@gmail.com>
Authored: Wed Oct 2 14:53:08 2013 -0400
Committer: suelockwood <de...@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.'
         });