mirror of https://github.com/gophish/gophish
Fixing tracking image checkbox accuracy. Fixes #443
parent
32bd950da0
commit
78fa561404
|
@ -164,7 +164,7 @@ function edit(idx) {
|
||||||
file.type || "application/octet-stream"
|
file.type || "application/octet-stream"
|
||||||
]).draw()
|
]).draw()
|
||||||
})
|
})
|
||||||
if (template.html.indexOf("{{.Tracker}}</body>") != -1) {
|
if (template.html.indexOf("{{.Tracker}}") != -1) {
|
||||||
$("#use_tracker_checkbox").prop("checked", true)
|
$("#use_tracker_checkbox").prop("checked", true)
|
||||||
} else {
|
} else {
|
||||||
$("#use_tracker_checkbox").prop("checked", false)
|
$("#use_tracker_checkbox").prop("checked", false)
|
||||||
|
@ -225,7 +225,7 @@ function copy(idx) {
|
||||||
.remove()
|
.remove()
|
||||||
.draw();
|
.draw();
|
||||||
})
|
})
|
||||||
if (template.html.indexOf("{{.Tracker}}</body>") != -1) {
|
if (template.html.indexOf("{{.Tracker}}") != -1) {
|
||||||
$("#use_tracker_checkbox").prop("checked", true)
|
$("#use_tracker_checkbox").prop("checked", true)
|
||||||
} else {
|
} else {
|
||||||
$("#use_tracker_checkbox").prop("checked", false)
|
$("#use_tracker_checkbox").prop("checked", false)
|
||||||
|
|
Loading…
Reference in New Issue