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
Hide 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 @@
...
@@ -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
};
};
};
};
...
...
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