Fix change detection for textareas in Config page
This commit is contained in:
parent
ef0c0b1e32
commit
e79e60f0bb
2 changed files with 10 additions and 4 deletions
|
@ -26,6 +26,9 @@ class ConfigStorage extends Class
|
||||||
|
|
||||||
deformatValue: (value, type) ->
|
deformatValue: (value, type) ->
|
||||||
if type == "object" and typeof(value) == "string"
|
if type == "object" and typeof(value) == "string"
|
||||||
|
if not value.length
|
||||||
|
return value = null
|
||||||
|
else
|
||||||
return value.split("\n")
|
return value.split("\n")
|
||||||
if type == "boolean" and not value
|
if type == "boolean" and not value
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -1336,8 +1336,12 @@
|
||||||
|
|
||||||
ConfigStorage.prototype.deformatValue = function(value, type) {
|
ConfigStorage.prototype.deformatValue = function(value, type) {
|
||||||
if (type === "object" && typeof value === "string") {
|
if (type === "object" && typeof value === "string") {
|
||||||
|
if (!value.length) {
|
||||||
|
return value = null;
|
||||||
|
} else {
|
||||||
return value.split("\n");
|
return value.split("\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (type === "boolean" && !value) {
|
if (type === "boolean" && !value) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1496,7 +1500,6 @@
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ---- plugins/UiConfig/media/js/ConfigView.coffee ---- */
|
/* ---- plugins/UiConfig/media/js/ConfigView.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue