summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2018-08-03 13:30:49 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2018-08-03 13:30:49 +0200
commit6d7bf8142155e40bc65c63d9d2200b251435c92c (patch)
tree27bcd31f417540b0b94c9e159eb49d5f84872967 /core/js
parent49cbd8cd9507992c40e9acbb732721bcb72f1cba (diff)
downloadnextcloud-server-6d7bf8142155e40bc65c63d9d2200b251435c92c.tar.gz
nextcloud-server-6d7bf8142155e40bc65c63d9d2200b251435c92c.zip
Fix HTML on update error page
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/update.js21
1 files changed, 7 insertions, 14 deletions
diff --git a/core/js/update.js b/core/js/update.js
index b2a25795587..9562c7b2e47 100644
--- a/core/js/update.js
+++ b/core/js/update.js
@@ -69,16 +69,15 @@
.removeClass('icon-loading-dark');
self.setErrorMessage(message);
- var span = $('<span>')
- .addClass('bold');
+ var updateUnsuccessful = $('<p>');
if(message === 'Exception: Updates between multiple major versions and downgrades are unsupported.') {
- span.append(t('core', 'The update was unsuccessful. For more information <a href="{url}">check our forum post</a> covering this issue.', {'url': 'https://help.nextcloud.com/t/updates-between-multiple-major-versions-are-unsupported/7094'}));
+ updateUnsuccessful.append(t('core', 'The update was unsuccessful. For more information <a href="{url}">check our forum post</a> covering this issue.', {'url': 'https://help.nextcloud.com/t/updates-between-multiple-major-versions-are-unsupported/7094'}));
} else {
- span.append(t('core', 'The update was unsuccessful. ' +
+ updateUnsuccessful.append(t('core', 'The update was unsuccessful. ' +
'Please report this issue to the ' +
'<a href="https://github.com/nextcloud/server/issues" target="_blank">Nextcloud community</a>.'));
}
- span.appendTo($el);
+ updateUnsuccessful.appendTo($el);
});
updateEventSource.listen('done', function() {
$(window).off('beforeunload.inprogress');
@@ -123,9 +122,7 @@
setMessage: function(message) {
$('#update-progress-message').html(message);
$('#update-progress-detailed')
- .append($('<span>'))
- .append(message)
- .append($('<br>'));
+ .append('<p>' + message + '</p>');
},
setPermanentMessage: function(message) {
@@ -134,9 +131,7 @@
.show()
.append($('<ul>').append(message));
$('#update-progress-detailed')
- .append($('<span>'))
- .append(message)
- .append($('<br>'));
+ .append('<p>' + message + '</p>');
},
setErrorMessage: function (message) {
@@ -144,9 +139,7 @@
.show()
.html(message);
$('#update-progress-detailed')
- .append($('<span>'))
- .append(message)
- .append($('<br>'));
+ .append('<p>' + message + '</p>');
}
};