updates to new settings mechanism, updating markdown minver, minor linting for upgrades.js, and upgrade stmt for markdown migration

This commit is contained in:
Julian Lam
2014-03-18 11:44:22 -04:00
parent 39b22058b7
commit 61afee98c3
4 changed files with 117 additions and 30 deletions

View File

@@ -34,6 +34,14 @@ define(function() {
if (formEl.length) {
var values = formEl.serializeObject();
// "Fix" checkbox values, so that unchecked options are not omitted
formEl.find('input[type="checkbox"]').each(function(idx, inputEl) {
inputEl = $(inputEl);
if (!inputEl.is(':checked')) {
values[inputEl.attr('id')] = 'off';
}
});
socket.emit('admin.settings.set', {
hash: hash,
values: values