Revision 5939efeb ui/static/snf/js/ui/web/ui_metadata_view.js
b/ui/static/snf/js/ui/web/ui_metadata_view.js | ||
---|---|---|
165 | 165 |
this.$(".editor .create").removeClass('in-progress'); |
166 | 166 |
}, this)); |
167 | 167 |
} else { |
168 |
this.editing = true; |
|
168 | 169 |
this.editor.find(".form-field label").addClass("error"); |
169 | 170 |
} |
170 | 171 |
|
... | ... | |
205 | 206 |
}) |
206 | 207 |
|
207 | 208 |
this.editor.find("input").keyup(_.bind(function(e){ |
209 |
e.keyCode = e.keyCode || e.which; |
|
208 | 210 |
if (e.keyCode == 13) { this.submit_editor() }; |
211 |
if (e.keyCode == 27) { this.close_editor() }; |
|
209 | 212 |
}, this)); |
210 | 213 |
|
211 | 214 |
this.editor.find(".predefined-meta-key").click(function() { |
Also available in: Unified diff