diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-10-17 13:05:24 -0400 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-10-17 13:05:24 -0400 |
commit | cc94a0d21092ecfcbf3347004873b3a65b417a0f (patch) | |
tree | 288ee7431638c2140c4000af2f32abe913f645da | |
parent | 4ecb639f593e9f55f934ad69fa2186d55bfa6c9e (diff) | |
download | couchdb-cc94a0d21092ecfcbf3347004873b3a65b417a0f.tar.gz |
View Delete was broken
-rw-r--r-- | src/fauxton/app/modules/documents/views.js | 4 | ||||
-rw-r--r-- | src/fauxton/app/templates/documents/view_editor.html | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js index 9f665e50d..2f3b69423 100644 --- a/src/fauxton/app/modules/documents/views.js +++ b/src/fauxton/app/modules/documents/views.js @@ -1106,7 +1106,7 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, Codemirror, JSHint, re events: { "click button.save": "saveView", - "click button.delete": "deleteView", + "click button.cancel-button": "deleteView", "change select#reduce-function-selector": "updateReduce", "change select#ddoc": "updateDesignDoc", "click #db-views-tabs-nav": 'toggleIndexNav' @@ -1575,6 +1575,8 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, Codemirror, JSHint, re this.ddocID = options.ddocInfo.id; this.currView = options.ddocInfo.currView; } + // this.listenTo(this.collection, "add", this.render); + // this.listenTo(this.collection, "remove", this.render); }, deleteDatabase: function (event) { diff --git a/src/fauxton/app/templates/documents/view_editor.html b/src/fauxton/app/templates/documents/view_editor.html index 64f0f9821..f75edc5ab 100644 --- a/src/fauxton/app/templates/documents/view_editor.html +++ b/src/fauxton/app/templates/documents/view_editor.html @@ -91,7 +91,7 @@ the License. <div class="control-group"> <button class="button green save fonticon-circle-check">Save</button> <% if (!this.newView) { %> - <button class="button cancel-button outlineGray fonticon-circle-x">Delete</button> + <button class="button delete outlineGray fonticon-circle-x">Delete</button> <% } %> </div> <div class="clearfix"></div> |