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() {
|
function dismiss() {
|
||||||
$("#modal\\.flashes").empty()
|
$("#modal\\.flashes").empty()
|
||||||
|
$("#name").val("")
|
||||||
|
$("#template").val("")
|
||||||
|
$("#page").val("")
|
||||||
|
$("#url").val("")
|
||||||
|
$("#profile").val("")
|
||||||
|
$("#groupSelect").val("")
|
||||||
$("#modal").modal('hide')
|
$("#modal").modal('hide')
|
||||||
$("#groupTable").dataTable().DataTable().clear().draw()
|
$("#groupTable").dataTable().DataTable().clear().draw()
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,10 +69,12 @@ function save(idx) {
|
||||||
function dismiss() {
|
function dismiss() {
|
||||||
$("#modal\\.flashes").empty()
|
$("#modal\\.flashes").empty()
|
||||||
$("#name").val("")
|
$("#name").val("")
|
||||||
|
$("#interface_type").val("SMTP")
|
||||||
$("#from").val("")
|
$("#from").val("")
|
||||||
$("#host").val("")
|
$("#host").val("")
|
||||||
$("#username").val("")
|
$("#username").val("")
|
||||||
$("#password").val("")
|
$("#password").val("")
|
||||||
|
$("#ignore_cert_errors").prop("checked", true)
|
||||||
$("#modal").modal('hide')
|
$("#modal").modal('hide')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ function dismiss() {
|
||||||
$("#modal\\.flashes").empty()
|
$("#modal\\.flashes").empty()
|
||||||
$("#attachmentsTable").dataTable().DataTable().clear().draw()
|
$("#attachmentsTable").dataTable().DataTable().clear().draw()
|
||||||
$("#name").val("")
|
$("#name").val("")
|
||||||
|
$("#subject").val("")
|
||||||
$("#text_editor").val("")
|
$("#text_editor").val("")
|
||||||
$("#html_editor").val("")
|
$("#html_editor").val("")
|
||||||
$("#modal").modal('hide')
|
$("#modal").modal('hide')
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<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>
|
<h4 class="modal-title" id="campaignModalLabel">New Campaign</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<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>
|
<button type="button" id="launchButton" class="btn btn-primary" onclick="launch()"><i class="fa fa-rocket"></i> Launch Campaign</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<!-- New Template Modal -->
|
<!-- New Template Modal -->
|
||||||
<div class="modal-header">
|
<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>
|
<h4 class="modal-title" id="pageModalLabel">New Landing Page</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<!-- New Template Modal -->
|
<!-- New Template Modal -->
|
||||||
<div class="modal-header">
|
<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>
|
<h4 class="modal-title" id="profileModalLabel">New Sending Profile</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<!-- New Template Modal -->
|
<!-- New Template Modal -->
|
||||||
<div class="modal-header">
|
<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>
|
<h4 class="modal-title" id="templateModalLabel">New Template</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
Loading…
Reference in New Issue