From 5158328190e9cb32be8c449ee19b15e2c98d6614 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 10 Oct 2016 13:55:27 +0200 Subject: [PATCH] remove unneeded variable & proper element creation Signed-off-by: Morris Jobke --- apps/updatenotification/js/notification.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/updatenotification/js/notification.js b/apps/updatenotification/js/notification.js index 913a59e042..26215b50df 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,