diff options
Diffstat (limited to 'apps/updatenotification/js/legacy-notification.js')
-rw-r--r-- | apps/updatenotification/js/legacy-notification.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/updatenotification/js/legacy-notification.js b/apps/updatenotification/js/legacy-notification.js deleted file mode 100644 index 7480505d8be..00000000000 --- a/apps/updatenotification/js/legacy-notification.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2015 ownCloud Inc - * - * @author Morris Jobke <hey@morrisjobke.de> - * - * This file is licensed under the Affero General Public License version 3 - * or later. - * - * See the COPYING-README file. - * - */ - -/** - * This only gets loaded if an update is available and the notifications app is not enabled for the user. - */ -window.addEventListener('DOMContentLoaded', function(){ - 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.showHtml(element.prop('outerHTML'), { type: 'error' }); -}); |