Use inline parsing for header and footer of modals

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
print-window-tiddler
Jermolene 2015-03-18 11:41:10 +00:00
rodzic 22b7400de8
commit 421ac16389
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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: {