mirror of https://github.com/gophish/gophish
Cleaning up artifacts in modals on edit/copy/new for #143
parent
5b1ffe39b7
commit
9c7adb9941
|
@ -87,6 +87,12 @@ function sendTestEmail() {
|
|||
|
||||
function dismiss() {
|
||||
$("#modal\\.flashes").empty()
|
||||
$("#name").val("")
|
||||
$("#template").val("")
|
||||
$("#page").val("")
|
||||
$("#url").val("")
|
||||
$("#profile").val("")
|
||||
$("#groupSelect").val("")
|
||||
$("#modal").modal('hide')
|
||||
$("#groupTable").dataTable().DataTable().clear().draw()
|
||||
}
|
||||
|
|
|
@ -69,10 +69,12 @@ function save(idx) {
|
|||
function dismiss() {
|
||||
$("#modal\\.flashes").empty()
|
||||
$("#name").val("")
|
||||
$("#interface_type").val("SMTP")
|
||||
$("#from").val("")
|
||||
$("#host").val("")
|
||||
$("#username").val("")
|
||||
$("#password").val("")
|
||||
$("#ignore_cert_errors").prop("checked", true)
|
||||
$("#modal").modal('hide')
|
||||
}
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ function dismiss() {
|
|||
$("#modal\\.flashes").empty()
|
||||
$("#attachmentsTable").dataTable().DataTable().clear().draw()
|
||||
$("#name").val("")
|
||||
$("#subject").val("")
|
||||
$("#text_editor").val("")
|
||||
$("#html_editor").val("")
|
||||
$("#modal").modal('hide')
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="campaignModalLabel">New Campaign</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
@ -108,7 +108,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal" onclick="dismiss()">Close</button>
|
||||
<button type="button" id="launchButton" class="btn btn-primary" onclick="launch()"><i class="fa fa-rocket"></i> Launch Campaign</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
<div class="modal-content">
|
||||
<!-- New Template Modal -->
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="pageModalLabel">New Landing Page</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<div class="modal-content">
|
||||
<!-- New Template Modal -->
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="profileModalLabel">New Sending Profile</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<div class="modal-content">
|
||||
<!-- New Template Modal -->
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="templateModalLabel">New Template</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
|
Loading…
Reference in New Issue