Commit 687fb324 authored by Sven Franck's avatar Sven Franck

app: removed table widget custom wrapper - use generic wrapper

parent d99a96a8
...@@ -2036,8 +2036,7 @@ ...@@ -2036,8 +2036,7 @@
*/ */
// TODO: pre-enhance! // TODO: pre-enhance!
factory.widget.table = function (spec) { factory.widget.table = function (spec) {
var fragment, container, generator, counter, target, section, i, tag, var fragment, container, generator, counter, section, i, tag, image;
image;
counter = function (scheme) { counter = function (scheme) {
var m, field, k; var m, field, k;
...@@ -2059,13 +2058,6 @@ ...@@ -2059,13 +2058,6 @@
return config.text; return config.text;
}; };
target = function () {
return factory.widget.controlbar({
"wrap": "section",
"class_list": "span_1"
});
};
generator = function (generator_spec) { generator = function (generator_spec) {
var quirk_dict, row, temp, cell, j, field, link, logic, faux_id, var quirk_dict, row, temp, cell, j, field, link, logic, faux_id,
attributes, property, snippet, title, k, button, group, dict, set, attributes, property, snippet, title, k, button, group, dict, set,
...@@ -2290,9 +2282,12 @@ ...@@ -2290,9 +2282,12 @@
case "header": case "header":
tag = factory.element({"type": "thead"}); tag = factory.element({"type": "thead"});
tag.appendChild( tag.appendChild(
generator(section.field_list, { generator({
"wrap": true, "item":section.field_list,
"property_dict": spec "wrapper": {
"property_dict": spec,
"wrap": true
}
}).content }).content
); );
container.appendChild(tag); container.appendChild(tag);
...@@ -2311,15 +2306,13 @@ ...@@ -2311,15 +2306,13 @@
} }
fragment.appendChild(container); fragment.appendChild(container);
} }
return { return {
"fragment": fragment, "fragment": fragment,
"child_selector": fragment.querySelector("tbody"), "child_selector": fragment.querySelector("tbody"),
"child_constructor": generator, "child_constructor": generator,
"child_mapper": spec.map_children, "child_mapper": spec.map_children,
"base": "tr", "base": "tr",
"count": counter, "count": counter
"target": target
}; };
}; };
......
Markdown is supported
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