summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-02-08 09:19:16 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-02-08 09:19:16 +0100
commit4032cc016627b5079775c268c3e28867ce234d26 (patch)
treeaadf23ebd5b510992fadf98355b0ce46198dd7ad /core/js
parent4130639a7ede41e7178eb4ce1d4ba328a697f722 (diff)
downloadnextcloud-server-4032cc016627b5079775c268c3e28867ce234d26.tar.gz
nextcloud-server-4032cc016627b5079775c268c3e28867ce234d26.zip
Don't show "report this to the community" when the upgrade is unsupported
* fixes #21367
Diffstat (limited to 'core/js')
-rw-r--r--core/js/update.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/core/js/update.js b/core/js/update.js
index 1626b6f2c49..7011e350de6 100644
--- a/core/js/update.js
+++ b/core/js/update.js
@@ -60,12 +60,16 @@
updateEventSource.listen('failure', function(message) {
$(window).off('beforeunload.inprogress');
$('<span>').addClass('error').append(message).append('<br />').appendTo($el);
- $('<span>')
- .addClass('bold')
- .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($el);
+ var span = $('<span>')
+ .addClass('bold');
+ if(message === 'Exception: Updates between multiple major versions and downgrades are unsupported.') {
+ span.append(t('core', 'The update was unsuccessful.'));
+ } else {
+ span.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>.'));
+ }
+ span.appendTo($el);
});
updateEventSource.listen('done', function() {
$(window).off('beforeunload.inprogress');