Commit da4f85dc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

configuration parameter that are defined as text use different edit widget

parent f3511c8a
......@@ -13,6 +13,7 @@ var logger = require('../../logger');
// noinspection JSUnusedLocalSymbols
var Promise = require("bluebird");
var xss = require("xss");
function ConfigurationAdminPanel(params) {
AbstractAdminPanel.call(this, params);
......@@ -119,6 +120,8 @@ ConfigurationAdminPanel.prototype.optionToTableRow = function (option) {
option.getValueType() === "PASSWORD" ||
option.getValueType() === "URL") {
editOption = "<input name='edit-" + option.getType() + "' value='" + value + "'/>";
} else if (option.getValueType() === "TEXT") {
editOption = "<textarea name='edit-" + option.getType() + "'>" + xss(value) + "</textarea>";
} else if (option.getValueType() === "COLOR") {
editOption = "<div>" +
"<input class='minerva-color-input' name='edit-" + option.getType() + "' data='" + option.getType() + "' value='" + value + "'/>" +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment