Fixing tracking image checkbox accuracy. Fixes #443

pull/421/merge
Jordan Wright 2016-11-18 18:55:17 -06:00
parent 32bd950da0
commit 78fa561404
1 changed files with 2 additions and 2 deletions

View File

@ -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)