1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 18:00:26 +00:00

Replace obsolete content type

This commit is contained in:
Jeremy Ruston 2013-06-27 10:19:38 +01:00
parent 9ca5f673b9
commit 0edfc855b4

View File

@ -71,7 +71,7 @@ Modal.prototype.display = function(title,options) {
} else { } else {
titleText = title; titleText = title;
} }
var headerParser = this.wiki.parseText("text/vnd.tiddlywiki-run",titleText,{parseAsInline: true}), var headerParser = this.wiki.parseText("text/vnd.tiddlywiki",titleText,{parseAsInline: true}),
headerRenderTree = new $tw.WikiRenderTree(headerParser,{wiki: $tw.wiki, context: {tiddlerTitle: title}, document: document}); headerRenderTree = new $tw.WikiRenderTree(headerParser,{wiki: $tw.wiki, context: {tiddlerTitle: title}, document: document});
headerRenderTree.execute(); headerRenderTree.execute();
headerRenderTree.renderInDom(headerTitle); headerRenderTree.renderInDom(headerTitle);
@ -107,7 +107,7 @@ Modal.prototype.display = function(title,options) {
} else { } else {
footerText = '<$button message="tw-close-tiddler" class="btn btn-primary">Close</$button>'; footerText = '<$button message="tw-close-tiddler" class="btn btn-primary">Close</$button>';
} }
var footerParser = this.wiki.parseText("text/vnd.tiddlywiki-run",footerText,{parseAsInline: true}), var footerParser = this.wiki.parseText("text/vnd.tiddlywiki",footerText,{parseAsInline: true}),
footerRenderTree = new $tw.WikiRenderTree(footerParser,{wiki: $tw.wiki, context: {tiddlerTitle: title}, document: document}); footerRenderTree = new $tw.WikiRenderTree(footerParser,{wiki: $tw.wiki, context: {tiddlerTitle: title}, document: document});
footerRenderTree.execute(); footerRenderTree.execute();
footerRenderTree.renderInDom(modalFooterButtons); footerRenderTree.renderInDom(modalFooterButtons);