From 421ac16389cf07e8c00611ef5a858da0b89f7584 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 18 Mar 2015 11:41:10 +0000 Subject: [PATCH] Use inline parsing for header and footer of modals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This may cause backwards compatibility problems for people relying on the block mode parsing, but it’s much better for the rest of us as it avoids an unsightly paragraph tag --- core/modules/utils/dom/modal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/utils/dom/modal.js b/core/modules/utils/dom/modal.js index fb975fd0d..f753622c1 100644 --- a/core/modules/utils/dom/modal.js +++ b/core/modules/utils/dom/modal.js @@ -70,6 +70,7 @@ Modal.prototype.display = function(title,options) { // Render the title of the message var headerWidgetNode = this.wiki.makeTranscludeWidget(title,{ field: "subtitle", + mode: "inline", children: [{ type: "text", attributes: { @@ -112,6 +113,7 @@ Modal.prototype.display = function(title,options) { } var footerWidgetNode = this.wiki.makeTranscludeWidget(title,{ field: "footer", + mode: "inline", children: [{ type: "button", attributes: {