diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-10-10 20:28:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 20:28:30 +0200 |
commit | d99ab1b038f73bd84f9688a02e1573bd14b4a94c (patch) | |
tree | 2e8c5a7dd94a43962aff5b2417218506c3f4d674 /apps | |
parent | f3fd0f4a624e8d59890585a8967e88223a6e581e (diff) | |
parent | 5158328190e9cb32be8c449ee19b15e2c98d6614 (diff) | |
download | nextcloud-server-d99ab1b038f73bd84f9688a02e1573bd14b4a94c.tar.gz nextcloud-server-d99ab1b038f73bd84f9688a02e1573bd14b4a94c.zip |
Merge pull request #1675 from nextcloud/remove-unneeded-variable
remove unneeded variable & proper element creation
Diffstat (limited to 'apps')
-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, |