mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-29 00:44:08 +01:00
Fixed bugs when adding record
- Content from Inputs was not removed - Editing and deleting of new records was impossible
This commit is contained in:
parent
6358babe37
commit
4528f1c2b0
1 changed files with 10 additions and 4 deletions
|
@ -324,11 +324,17 @@ function addRecord() {
|
|||
.append('<td>' + data.prio + '</td>')
|
||||
.append('<td>' + data.ttl + '</td>')
|
||||
.append('<td><span class="glyphicon glyphicon-pencil cursor-pointer"></span></td>')
|
||||
.append('<td><span class="glyphicon glyphicon-trash cursor-pointer"></span></td>')
|
||||
.find('span.glyphicon-trash').click(trashClicked)
|
||||
.find('span.glyphicon-pencil').click(editClicked);
|
||||
|
||||
.append('<td><span class="glyphicon glyphicon-trash cursor-pointer"></span></td>');
|
||||
|
||||
$('#table-records>tbody>tr').last().find('span.glyphicon-pencil').click(editClicked);
|
||||
$('#table-records>tbody>tr').last().find('span.glyphicon-trash').click(trashClicked);
|
||||
requestSerial();
|
||||
|
||||
$('#addName').val("");
|
||||
$('#addType').val("A").change();
|
||||
$('#addContent').val("");
|
||||
$('#addPrio').val("");
|
||||
$('#addTtl').val("");
|
||||
},
|
||||
"json"
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue