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
b37cc066
Commit
b37cc066
authored
Feb 14, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade parseAction to cleaned up version
parent
18b99d2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
js/erp5_loader.js
js/erp5_loader.js
+15
-18
No files found.
js/erp5_loader.js
View file @
b37cc066
...
...
@@ -6945,29 +6945,26 @@
// TODO: id ... is crap
// TODO: passing empty state is not good, refactor, when adding state
app
.
generateActionObject
=
function
(
e
)
{
var
element
,
pop
,
id
,
gadget
;
switch
(
e
.
type
)
{
case
"
popupbeforeposition
"
:
element
=
undefined
;
id
=
e
.
target
.
id
;
gadget
=
e
.
target
;
break
;
default
:
element
=
e
.
target
||
e
;
pop
=
element
.
getAttribute
(
"
data-rel
"
)
===
null
;
id
=
pop
?
(
element
.
getAttribute
(
"
data-reference
"
)
||
util
.
getPage
().
getAttribute
(
"
data-url
"
))
:
(
element
.
href
===
undefined
?
util
.
getPage
().
getAttribute
(
"
data-url
"
)
:
element
.
href
.
split
(
"
#
"
)[
1
]);
gadget
=
document
.
getElementById
(
id
);
break
;
var
element
,
id
,
gadget
;
if
(
e
.
type
===
"
popupbeforeposition
"
)
{
return
{
"
id
"
:
e
.
target
.
id
,
"
gadget
"
:
e
.
target
};
}
element
=
e
.
target
||
e
;
id
=
element
.
getAttribute
(
"
data-reference
"
)
||
(
element
.
href
||
""
).
split
(
"
#
"
)[
1
]
||
util
.
getPage
().
getAttribute
(
"
data-url
"
);
gadget
=
document
.
getElementById
(
id
);
return
{
"
element
"
:
element
,
"
id
"
:
id
,
"
gadget
"
:
document
.
getElementById
(
id
),
"
state
"
:
gadget
?
gadget
.
state
:
{}
"
gadget
"
:
document
.
getElementById
(
id
)
||
gadget
.
getElementsByTagName
(
"
form
"
)[
0
]
,
"
state
"
:
(
gadget
||
{}).
state
};
};
...
...
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