Merge pull request #1675 from nextcloud/remove-unneeded-variable
remove unneeded variable & proper element creation
This commit is contained in:
commit
d99ab1b038
1 changed files with 2 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue