diff --git a/apps/updatenotification/js/notification.js b/apps/updatenotification/js/notification.js index 913a59e042c..26215b50df0 100644 --- a/apps/updatenotification/js/notification.js +++ b/apps/updatenotification/js/notification.js @@ -14,11 +14,8 @@ * this gets only loaded if an update is available and then shows a temporary notification */ $(document).ready(function(){ - var head = $('html > head'), - version = oc_updateState.updateVersion, - docLink = oc_updateState.updateLink, - text = t('core', '{version} is available. Get more information on how to update.', {version: version}), - element = $(''+escapeHTML(text)+''); + var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}), + element = $('').attr('href', oc_updateState.updateLink).attr('target','_blank').text(text); OC.Notification.showTemporary( element,