Add setting to allow/disallow quick editing of records

Adds an `allow_quick_edit` setting, using the improved setting handling logic from PR #287 to toggle whether records are editable by simply clicking the row or not.

Aims to fix #288
This commit is contained in:
Thomas M Steenholdt
2018-06-22 14:55:23 -02:00
parent 1bccc34c16
commit 31305a3048
3 changed files with 8 additions and 5 deletions

View File

@ -161,8 +161,8 @@
modal.modal('show');
});
// handle edit button
$(document.body).on("click", ".button_edit, .row_record", function(e) {
// handle edit button and record click
$(document.body).on("click", ".button_edit{% if quick_edit %}, .row_record{% endif %}", function(e) {
e.stopPropagation();
if ($(this).is('tr')) {
var nRow = $(this)[0];