Added result ID to campaign results view. Fixes #1239

pull/1252/head
Jordan Wright 2018-10-18 15:05:59 -05:00
parent 326649b177
commit 468da007d5
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -357,8 +357,8 @@ var renderDevice = function (event_details) {
}
function renderTimeline(data) {
console.log(data)
record = {
"id": data[0],
"first_name": data[2],
"last_name": data[3],
"email": data[4],
@ -369,7 +369,8 @@ function renderTimeline(data) {
}
results = '<div class="timeline col-sm-12 well well-lg">' +
'<h6>Timeline for ' + escapeHtml(record.first_name) + ' ' + escapeHtml(record.last_name) +
'</h6><span class="subtitle">Email: ' + escapeHtml(record.email) + '</span>' +
'</h6><span class="subtitle">Email: ' + escapeHtml(record.email) +
'<br>Result ID: ' + escapeHtml(record.id) + '</span>' +
'<div class="timeline-graph col-sm-6">'
$.each(campaign.timeline, function (i, event) {
if (!event.email || event.email == record.email) {

View File

@ -92,7 +92,6 @@ function importSite() {
include_resources: false
})
.success(function (data) {
console.log($("#html_editor"))
$("#html_editor").val(data.html)
CKEDITOR.instances["html_editor"].setMode('wysiwyg')
$("#importSiteModal").modal("hide")