diff --git a/static/js/app/campaigns.js b/static/js/app/campaigns.js
index 4b3ff387..32d86ad2 100644
--- a/static/js/app/campaigns.js
+++ b/static/js/app/campaigns.js
@@ -191,6 +191,9 @@ $(document).ready(function() {
}
}, this));
};
+ $('#modal').on('hidden.bs.modal', function(event) {
+ dismiss()
+ });
api.campaigns.get()
.success(function(cs) {
campaigns = cs
diff --git a/static/js/app/landing_pages.js b/static/js/app/landing_pages.js
index 2a6103df..02c5c674 100644
--- a/static/js/app/landing_pages.js
+++ b/static/js/app/landing_pages.js
@@ -36,7 +36,8 @@ function dismiss() {
$("#modal\\.flashes").empty()
$("#name").val("")
$("#html_editor").val("")
- $("#newLandingPageModal").modal('hide')
+ $("#url").val("")
+ $("#modal").modal('hide')
}
function deletePage(idx) {
@@ -117,10 +118,10 @@ function load() {
pagesTable.row.add([
page.name,
moment(page.modified_date).format('MMMM Do YYYY, h:mm:ss a'),
- "