linting admin/settings

v1.18.x
psychobunny 11 years ago
parent 81de895c0e
commit 2d65a746e4

@ -1,3 +1,6 @@
"use strict";
/*global define, app, socket, RELATIVE_PATH */
define(['uploader'], function(uploader) {
var Settings = {};
@ -40,9 +43,13 @@ define(['uploader'], function(uploader) {
}
}
} else if (field.is('textarea')) {
if (app.config[key]) field.val(app.config[key]);
if (app.config[key]) {
field.val(app.config[key]);
}
} else if (field.is('select')) {
if (app.config[key]) field.val(app.config[key]);
if (app.config[key]) {
field.val(app.config[key]);
}
}
}

Loading…
Cancel
Save