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