]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix legacy update notifications 23195/head
authormrtnmtth <mrtn.mtth@gmx.de>
Sun, 4 Oct 2020 13:51:44 +0000 (15:51 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 5 Oct 2020 14:07:51 +0000 (14:07 +0000)
Signed-off-by: mrtnmtth <mrtn.mtth@gmx.de>
apps/updatenotification/js/legacy-notification.js

index 39d0d8920de823f36ad334befac15e0d146e4115..7480505d8beb758f0e6c935fce5035f8df870ec3 100644 (file)
@@ -17,5 +17,5 @@ window.addEventListener('DOMContentLoaded', function(){
        var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}),
                element = $('<a>').attr('href', oc_updateState.updateLink).attr('target','_blank').text(text);
 
-       OC.Notification.showHtml(element, { type: 'error' });
+       OC.Notification.showHtml(element.prop('outerHTML'), { type: 'error' });
 });