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