mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
Small fix
This commit is contained in:
parent
b9374aaffe
commit
eb332880ab
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,9 @@ function edit(id) {
|
||||||
}
|
}
|
||||||
data.submit();
|
data.submit();
|
||||||
},
|
},
|
||||||
|
fail: function(e, data) {
|
||||||
|
modalError(data.jqXHR.responseJSON.message);
|
||||||
|
},
|
||||||
done: function (e, data) {
|
done: function (e, data) {
|
||||||
if (!('id' in data.result)) {
|
if (!('id' in data.result)) {
|
||||||
modalError("Failed to upload CSV file")
|
modalError("Failed to upload CSV file")
|
||||||
|
@ -207,6 +210,9 @@ function addTarget(firstNameInput, lastNameInput, emailInput, positionInput) {
|
||||||
$('#targetsTable_wrapper').show()
|
$('#targetsTable_wrapper').show()
|
||||||
$('#targetsTable').show()
|
$('#targetsTable').show()
|
||||||
$("#groupid").val(data.id)
|
$("#groupid").val(data.id)
|
||||||
|
load()
|
||||||
|
edit(data.id)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.error(function (data) {
|
.error(function (data) {
|
||||||
|
|
Loading…
Reference in a new issue