mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 14:39:45 +02:00
put input default back after row add
This commit is contained in:
parent
98079faafd
commit
51c175d160
1 changed files with 2 additions and 2 deletions
|
@ -364,7 +364,7 @@ function makeTableInputs(setting) {
|
||||||
_.each(setting.columns, function(col) {
|
_.each(setting.columns, function(col) {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>\
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>\
|
||||||
<input type='text' class='form-control' placeholder='" + (col.placeholder ? col.placeholder : "") + "'\
|
<input type='text' class='form-control' placeholder='" + (col.placeholder ? col.placeholder : "") + "'\
|
||||||
value='" + (col.default ? col.default : "") + "'>\
|
value='" + (col.default ? col.default : "") + "' data-default='" + (col.default ? col.default : "") + "'>\
|
||||||
</td>"
|
</td>"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -504,7 +504,7 @@ function addTableRow(add_glyphicon) {
|
||||||
})
|
})
|
||||||
|
|
||||||
input_clone.find('input').each(function(){
|
input_clone.find('input').each(function(){
|
||||||
$(this).val('')
|
$(this).val($(this).attr('data-default'));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isArray) {
|
if (isArray) {
|
||||||
|
|
Loading…
Reference in a new issue