fix: allow hidden inputs in user settings page

This commit is contained in:
Julian Lam
2021-02-20 15:01:50 -05:00
parent cf1939e16d
commit beaac0a1ab

View File

@@ -53,13 +53,12 @@ define('forum/account/settings', ['forum/account/header', 'components', 'transla
}
switch (input.attr('type')) {
case 'text':
case 'textarea':
settings[setting] = input.val();
break;
case 'checkbox':
settings[setting] = input.is(':checked') ? 1 : 0;
break;
default:
settings[setting] = input.val();
break;
}
});