Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
687fb324
Commit
687fb324
authored
Apr 22, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: removed table widget custom wrapper - use generic wrapper
parent
d99a96a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
js/erp5_loader.js
js/erp5_loader.js
+8
-15
No files found.
js/erp5_loader.js
View file @
687fb324
...
...
@@ -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
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment