Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-10-10 14:55:27 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-10-10 15:06:43 +0300
commit5158328190e9cb32be8c449ee19b15e2c98d6614 (patch)
tree8bdf1747f465ae8fedc26081029f9938491bd821 /apps/updatenotification/js
parent2dcd97bf144fac80d68df813d9d002bcbe3e1d6b (diff)
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.js7
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,