From a88f66fdf4163b4b3cfa873b114c197cbc4f64b6 Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Fri, 20 Feb 2015 13:51:48 -0800 Subject: [PATCH] actually use title --- public/assets/javascript/wxml-importer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/javascript/wxml-importer.js b/public/assets/javascript/wxml-importer.js index 06f2eb00..0229fab0 100644 --- a/public/assets/javascript/wxml-importer.js +++ b/public/assets/javascript/wxml-importer.js @@ -663,7 +663,7 @@ var WXMLImporter = (function() { "last_updated": newDate.format(), // Todo format the body "body": fixBody(body), - "name": pageData.data.title, + "name": title, "preview_url": guid(), "publish_date": publishDate ? publishDate.format() : null, "isDraft" : isDraft @@ -731,7 +731,7 @@ var WXMLImporter = (function() { "oneOffMD5" : "12ccdd0e5767cb47e0101448a75ac997" }; - var newTypeName = downcode(pageData.data.title).replace(/\s+|\W/g, '').toLowerCase(); + var newTypeName = downcode(title).replace(/\s+|\W/g, '').toLowerCase(); newType.name = newTypeName; pagesToIds[pageData.key] = newTypeName;