mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
Moved modal closing to hide.bs.modal - Fixes #71
This commit is contained in:
parent
86e0255ae6
commit
65005a2805
2 changed files with 6 additions and 2 deletions
|
@ -25,6 +25,7 @@ function save(idx){
|
|||
successFlash("Group updated successfully!")
|
||||
load()
|
||||
dismiss()
|
||||
$("#modal").modal('hide')
|
||||
})
|
||||
.error(function(data){
|
||||
modalError(data.responseJSON.message)
|
||||
|
@ -37,6 +38,7 @@ function save(idx){
|
|||
successFlash("Group added successfully!")
|
||||
load()
|
||||
dismiss()
|
||||
$("#modal").modal('hide')
|
||||
})
|
||||
.error(function(data){
|
||||
modalError(data.responseJSON.message)
|
||||
|
@ -48,7 +50,6 @@ function dismiss(){
|
|||
$("#targetsTable").dataTable().DataTable().clear().draw()
|
||||
$("#name").val("")
|
||||
$("#modal\\.flashes").empty()
|
||||
$("#modal").modal('hide')
|
||||
}
|
||||
|
||||
function edit(idx){
|
||||
|
@ -176,4 +177,7 @@ $(document).ready(function(){
|
|||
.remove()
|
||||
.draw();
|
||||
})
|
||||
$("#modal").on("hide.bs.modal", function(){
|
||||
dismiss()
|
||||
})
|
||||
})
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" onclick="dismiss()">Close</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary" id="modalSubmit">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue