Commit b4bb1e58 authored by Tejesh's avatar Tejesh 🖖
Browse files

header tempalte update

parent da3a76b9
Pipeline #76504 passed with stage
in 2 minutes and 33 seconds
......@@ -319,7 +319,7 @@ function editHandler($this, template_data, options, template) {
var rowIndex = edited_row.getAttribute('data-row')
for (key in data) {
// TODO: refactor to identify editable columns other than using data-key attrs on <td> tag
var editable_element = $('td[data-key=' + (remove_quotes(key)) + '] :input', $(edited_row))
var editable_element = $('td[data-key="' + (remove_quotes(key)) + '"] :input', $(edited_row))
if (editable_element.length) {
data[key] = template_data['data'][rowIndex][key] = editable_element.val()
}
......
......@@ -120,7 +120,6 @@ Each template receives these variables:
</th>
<% } %>
<% }) %>
<% }) %>
</thead>
<tbody>
<% if (isAdd) { %>
......
......@@ -118,11 +118,6 @@
},
}
],
headerOptions: false,
headerTemplate: function(args) {
var template = `<div class="text-nowrap">${(args.column.title || args.column.name)}</div>`
return template
},
edit: {
done: function() {
// test.ok(true, 'must call twice')
......@@ -141,9 +136,9 @@
})
})
.on('load', function () {
// check that headers no more contain dropdowns, but a plain text
// also, headerTemplate overrides headerOptions
test.equals($('.edit-fh thead tr th .dropdown').text().trim(), "ID Continent c1 Stripes Shapes date_col delete")
// // check that headers no more contain dropdowns, but a plain text
// // also, headerTemplate overrides headerOptions
// test.equals($('.edit-fh thead tr th .dropdown').text().trim(), "ID Continent c1 Stripes Shapes date_col delete")
// editing rows with no click must also update values
var init_cell_value = $(".edit-fh table > tbody > tr:nth-child(1) > td:nth-child(2) > a.urlfilter").text().trim()
......
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