40228c0c2b
added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
26 lines
660 B
JavaScript
26 lines
660 B
JavaScript
/**
|
|
* 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 gets only loaded if an update is available and then shows a temporary notification
|
|
*/
|
|
$(document).ready(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.show(element,
|
|
{
|
|
isHTML: true,
|
|
type: 'error'
|
|
}
|
|
);
|
|
});
|