diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-10 13:55:27 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-10 14:06:43 +0200 |
commit | 5158328190e9cb32be8c449ee19b15e2c98d6614 (patch) | |
tree | 8bdf1747f465ae8fedc26081029f9938491bd821 /apps/updatenotification/js | |
parent | 2dcd97bf144fac80d68df813d9d002bcbe3e1d6b (diff) | |
download | nextcloud-server-5158328190e9cb32be8c449ee19b15e2c98d6614.tar.gz nextcloud-server-5158328190e9cb32be8c449ee19b15e2c98d6614.zip |
remove unneeded variable & proper element creation
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification/js')
-rw-r--r-- | apps/updatenotification/js/notification.js | 7 |
1 files changed, 2 insertions, 5 deletions
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 = $('<a href="'+escapeHTML(docLink)+'" target="_blank">'+escapeHTML(text)+'</a>'); + 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.showTemporary( element, |