2015-05-03 10:28:29 +00:00
|
|
|
/**
|
|
|
|
* 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(){
|
2016-10-10 11:55:27 +00:00
|
|
|
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);
|
2015-05-03 10:28:29 +00:00
|
|
|
|
2017-02-14 20:26:00 +00:00
|
|
|
OC.Notification.show(element,
|
2015-05-03 10:28:29 +00:00
|
|
|
{
|
2017-02-14 20:26:00 +00:00
|
|
|
isHTML: true,
|
|
|
|
type: 'error'
|
2015-05-03 10:28:29 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|