don't shut out the InplaceEditor's buttons by accident

pull/6827/head
jwollert 14 years ago
parent 2067ae764a
commit 30d8e82845
  1. 4
      assets/javascripts/reporting/controls.js

@ -53,7 +53,9 @@ Reporting.Controls = {
var editor = new Reporting.InplaceEditor(target_id, updateUrl, {
onCreateForm: function (editor, event) {
$('query_saved_name-inplaceeditor').select('[class=editor_field]').first().onblur = function () {
editor.leaveEditMode();
if ($('query_saved_name-inplaceeditor').include(event.target)) {
editor.leaveEditMode();
}
};
},
callback: function (form, value) {

Loading…
Cancel
Save