Merge pull request #426 from vincentbernat/fix/feedlink-append

embed: fix feed link creation on older browsers
This commit is contained in:
Benoît Latinier 2018-05-01 23:38:53 +02:00 committed by GitHub
commit 5e65e46b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ require(["app/lib/ready", "app/config", "app/i18n", "app/api", "app/isso", "app/
var feedLink = $.new('a', i18n.translate('atom-feed')); var feedLink = $.new('a', i18n.translate('atom-feed'));
var feedLinkWrapper = $.new('span.isso-feedlink'); var feedLinkWrapper = $.new('span.isso-feedlink');
feedLink.href = api.feed($("#isso-thread").getAttribute("data-isso-id")); feedLink.href = api.feed($("#isso-thread").getAttribute("data-isso-id"));
feedLinkWrapper.append(feedLink); feedLinkWrapper.appendChild(feedLink);
$("#isso-thread").append(feedLinkWrapper); $("#isso-thread").append(feedLinkWrapper);
} }
$("#isso-thread").append($.new('h4')); $("#isso-thread").append($.new('h4'));