mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-03 12:49:09 +00:00
Fixed problem with setting classes on list and story macros
This commit is contained in:
parent
6448c70984
commit
bf85908d5e
@ -63,7 +63,7 @@ exports.executeMacro = function() {
|
||||
handler = handler || handlers.all;
|
||||
var tiddlers = handler(this.wiki);
|
||||
if(this.classes) {
|
||||
$tw.utils.pushTop(attributes["class"],this.classes);
|
||||
attributes["class"] = this.classes.slice(0);
|
||||
}
|
||||
if(tiddlers.length === 0) {
|
||||
return $tw.Tree.Text(this.params.emptyMessage || "");
|
||||
|
@ -158,9 +158,9 @@ exports.executeMacro = function() {
|
||||
m.execute(this.parents,this.tiddlerTitle);
|
||||
this.storyNode.children.push($tw.Tree.Element("div",{"class": "tw-story-element"},[m]));
|
||||
}
|
||||
var attributes = {"class": []};
|
||||
var attributes = {};
|
||||
if(this.classes) {
|
||||
$tw.utils.pushTop(attributes["class"],this.classes);
|
||||
attributes["class"] = this.classes.slice(0);
|
||||
}
|
||||
return $tw.Tree.Element("div",attributes,[this.contentNode,this.storyNode]);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user