Commit d39abe47 authored by S Anand's avatar S Anand

BUG: formhandler save should add new rows. Fixes #143 @tejesh.p

parent 57ad2aa2
Pipeline #74928 passed with stage
in 2 minutes and 17 seconds
......@@ -266,7 +266,7 @@ function addHandler($this, template_data, options, template) {
var data = {}
$.each(columns_data, function (key, column) {
data[column.getAttribute('data-key')] = column.value
data[column.getAttribute('data-key')] = $(column).children().val()
})
// if no changes made to new empty celled row, rerender the table.
if (!_.some(data)) {
......
......@@ -178,6 +178,7 @@ Each template receives these variables:
<% } %>
class="form-control form-control-sm"
>
<option value="" disabled selected>-- select --</option>
<% _.each(isEditable.options, function(item) { %>
<option <%- val && val === item ? 'selected': null %> value="<%- item %>">
<%- item %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment