Fixed Story.editlink_macro() with image parameter
This commit is contained in:
parent
f73973fabb
commit
f554f43d77
1 changed files with 3 additions and 1 deletions
|
|
@ -298,7 +298,9 @@ Story.prototype.editableby_macro = function(param) {
|
|||
Story.prototype.editlink_macro = function(param) {
|
||||
res.push();
|
||||
if (param.image && this.site.images.get(param.image)) {
|
||||
renderImage(this.site.images.get(param.image), param);
|
||||
var image = this.site.images.get(param.image);
|
||||
delete param.image;
|
||||
image && image.render_macro(param);
|
||||
} else {
|
||||
res.write(param.text || gettext("Edit"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue