summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-29 17:40:42 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-07-30 09:57:08 +0200
commit8bde72c4bd2a74c7de03abd2504a3abcf331fcbc (patch)
tree160c8eeb0552c2f85b6849abcbfbe9ac4a9ea2f3 /settings/js
parent5d15051da4a170b5c944ccffe372f1ebe2649924 (diff)
downloadnextcloud-server-8bde72c4bd2a74c7de03abd2504a3abcf331fcbc.tar.gz
nextcloud-server-8bde72c4bd2a74c7de03abd2504a3abcf331fcbc.zip
All setup messages are now properly types
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js24
1 files changed, 10 insertions, 14 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 752ab44534d..ae338ad7b00 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -175,20 +175,16 @@ $(document).ready(function(){
var $warningsEl = $el.find('.warnings');
var $infoEl = $el.find('.info');
for (var i = 0; i < messages.length; i++ ) {
- if ($.isPlainObject(messages[i])) {
- switch(messages[i].type) {
- case OC.SetupChecks.MESSAGE_TYPE_INFO:
- $tipsEl.append('<li>' + messages[i].msg + '</li>');
- break;
- case OC.SetupChecks.MESSAGE_TYPE_WARNING:
- $warningsEl.append('<li>' + messages[i].msg + '</li>');
- break;
- case OC.SetupChecks.MESSAGE_TYPE_ERROR:
- default:
- $errorsEl.append('<li>' + messages[i].msg + '</li>');
- }
- } else {
- $errorsEl.append('<li>' + messages[i] + '</li>');
+ switch(messages[i].type) {
+ case OC.SetupChecks.MESSAGE_TYPE_INFO:
+ $infoEl.append('<li>' + messages[i].msg + '</li>');
+ break;
+ case OC.SetupChecks.MESSAGE_TYPE_WARNING:
+ $warningsEl.append('<li>' + messages[i].msg + '</li>');
+ break;
+ case OC.SetupChecks.MESSAGE_TYPE_ERROR:
+ default:
+ $errorsEl.append('<li>' + messages[i].msg + '</li>');
}
}
if ($errorsEl.find('li').length > 0) {