Allow additional parameters for newsletter preview

This commit is contained in:
JonnyWong16 2018-03-21 13:05:46 -07:00
commit 1f10668838
3 changed files with 11 additions and 9 deletions

View file

@ -1,4 +1,7 @@
<!doctype html>
<%
import urllib
%>
<!doctype html>
<html lang="en">
<head>
@ -58,7 +61,7 @@
<script>
$(document).ready(function () {
var frame = $('<iframe></iframe>', {
src: '${http_root}real_newsletter?newsletter_id=${newsletter_id}&preview=true',
src: '${http_root}real_newsletter?${urllib.urlencode(kwargs)}',
frameborder: '0',
style: 'display: none; height: 100vh; width: 100vw;'
});