Skip to content
Snippets Groups Projects
Commit 143ae04b authored by bbaer's avatar bbaer
Browse files

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

parent 803f472b
No related branches found
No related tags found
No related merge requests found
Pipeline #1139 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment