Commit 143ae04b authored by bbaer's avatar bbaer
Browse files

Updated elementupdate for pattern, added "false" as an alternative to null

parent 803f472b
Pipeline #1139 passed with stage
in 1 minute and 38 seconds
......@@ -52,7 +52,6 @@ var QfqNS = QfqNS || {};
if (config.content) {
n.ElementUpdate.setElementText($element, config.content);
}
};
n.ElementUpdate.$getElementById = function (id) {
......@@ -68,7 +67,7 @@ var QfqNS = QfqNS || {};
attributeValue = attributes[attributeName];
if (attributeValue === null) {
if (attributeValue === null || attributeValue === false || attributeValue === "false") {
n.ElementUpdate.deleteAttribute($element, attributeName);
} else {
n.ElementUpdate.setAttribute($element, attributeName, attributeValue);
......
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