From 76962749b1954b5556d5bf35c8027ddf16698b1e Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Mon, 29 Feb 2016 21:30:20 -0600 Subject: [PATCH] Moved "Add Tracking Image" changes to the copy() function --- static/js/app/templates.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/app/templates.js b/static/js/app/templates.js index 2d962673..2476144a 100644 --- a/static/js/app/templates.js +++ b/static/js/app/templates.js @@ -221,6 +221,11 @@ function copy(idx) { .remove() .draw(); }) + if (template.html.indexOf("{{.Tracker}}") != -1) { + $("#use_tracker_checkbox").prop("checked", true) + } else { + $("#use_tracker_checkbox").prop("checked", false) + } } function importEmail() {