Skip to content

Commit

Permalink
actually use title
Browse files Browse the repository at this point in the history
  • Loading branch information
LtSquigs committed Feb 20, 2015
1 parent 301b9f7 commit a88f66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/assets/javascript/wxml-importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a88f66f

Please sign in to comment.