repair entry count on addRowButton

master
agp8x 2019-11-16 12:51:57 +01:00
parent 78ceb5edbc
commit f23d76b101
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ function addRow(){
console.log("failed to load prev");
}
});
$("button")[0].innerHTML = $('#table > tr').length;
$("#addRowBtn")[0].innerHTML = $('#table > tr').length;
}
function setPartDesc(target, option){
var part = $("input[name|='name']", event.target.parentNode.parentNode);

View File

@ -16,7 +16,7 @@
<button type="submit" disabled style="display: none" aria-hidden="true"></button>
<input type="submit"/>
<p><label for="sketch_name">Name:</label><input type="text" name="sketch_name" value="{{ sketch.name }}"/></p>
<button type="button" onclick="addRow()">add row</button>
<button type="button" onclick="addRow()" id="addRowBtn" >add row</button>
<table id="table">
<tr>
<th>Bild-Nr.</th>