summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fauxton/app/modules/documents/views.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index af08974b3..ffbc1d158 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -328,7 +328,8 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, resizeColumns) {
className: "all-docs-item",
events: {
- "click button.delete": "destroy"
+ "click button.delete": "destroy",
+ "dblclick pre.prettyprint": "edit"
},
attributes: function() {
@@ -347,6 +348,11 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, resizeColumns) {
return [this.model.fetch()];
},
+ edit: function(event) {
+ event.preventDefault();
+ FauxtonAPI.navigate("#" + this.model.url('app'));
+ },
+
destroy: function(event) {
event.preventDefault();
var that = this;