aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.slide.js
Commit message (Collapse)AuthorAgeFilesLines
* All: Added http://jqueryui.com/about to header comments.Scott González2010-07-141-1/+1
|
* All: Define a local undefined variable inside the main closure.Scott González2010-07-131-1/+1
|
* Updated copyright headers to make it clear that you can choose between MIT ↵Scott González2010-07-091-3/+3
| | | | and GPLv2. Also added a link to http://jquery.org/license.
* Happy New YearRichard Worth2010-01-201-1/+1
|
* renamed all ui.*.js files to jquery.ui.*.js, all effects.*.js files to ↵Richard Worth2009-09-171-0/+50
jquery.effects.*.js per announcement and discussion here http://groups.google.com/group/jquery-ui-dev/msg/d565a0c56e0cb935
/epehmeral_sessions Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/update.js
blob: b1b7f6e37e81293f3932ca286b207169cbe879cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$(document).ready(function () {
	var updateEventSource = new OC.EventSource(OC.webroot+'/core/ajax/update.php');
	updateEventSource.listen('success', function(message) {
		$('<span>').append(message).append('<br />').appendTo($('.update'));
	});
	updateEventSource.listen('error', function(message) {
		$('<span>').addClass('error').append(message).append('<br />').appendTo($('.update'));
		message = t('core', 'Please reload the page.');
		$('<span>').addClass('error').append(message).append('<br />').appendTo($('.update'));
		updateEventSource.close();
	});
	updateEventSource.listen('failure', function(message) {
		$('<span>').addClass('error').append(message).append('<br />').appendTo($('.update'));
		$('<span>')
		.addClass('error bold')
		.append('<br />')
		.append(t('core', 'The update was unsuccessful. Please report this issue to the <a href="https://github.com/owncloud/core/issues" target="_blank">ownCloud community</a>.'))
		.appendTo($('.update'));
	});
	updateEventSource.listen('done', function(message) {
		$('<span>').addClass('bold').append('<br />').append(t('core', 'The update was successful. Redirecting you to ownCloud now.')).appendTo($('.update'));
		setTimeout(function () {
			window.location.href = OC.webroot;
		}, 3000);
	});
});