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
a92ffff8
Commit
a92ffff8
authored
Apr 24, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: allow form widget to be updated (refreshed)
parent
9ce5d9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
js/erp5_loader.js
js/erp5_loader.js
+22
-15
No files found.
js/erp5_loader.js
View file @
a92ffff8
...
...
@@ -1483,21 +1483,28 @@
container
=
document
.
createDocumentFragment
();
form_id
=
"
form_
"
+
util
.
uuid
();
item_id
=
spec
.
data
?
(
spec
.
data
.
_id
||
undefined
)
:
undefined
;
form
=
factory
.
element
({
"
type
"
:
"
form
"
,
"
direct
"
:
{
"
id
"
:
form_id
,
"
method
"
:
"
POST
"
,
"
action
"
:
"
#
"
,
"
className
"
:
(
spec
.
class_list
||
""
)
},
"
attributes
"
:
{
"
data-ajax
"
:
false
,
"
autocomplete
"
:
"
off
"
},
"
logic
"
:
{
"
data-reference
"
:
spec
.
reference
||
null
,
"
data-depend
"
:
spec
.
depend
||
null
,
"
data-reset
"
:
spec
.
reset
||
null
}
});
if
(
spec
.
update
)
{
form
=
document
.
createDocumentFragment
();
}
else
{
form
=
factory
.
element
({
"
type
"
:
"
form
"
,
"
direct
"
:
{
"
id
"
:
form_id
,
"
method
"
:
"
POST
"
,
"
action
"
:
"
#
"
,
"
className
"
:
(
spec
.
class_list
||
""
)
},
"
attributes
"
:
{
"
data-ajax
"
:
false
,
"
autocomplete
"
:
"
off
"
,
"
data-widget
"
:
"
form
"
},
"
logic
"
:
{
"
data-reference
"
:
spec
.
reference
||
null
,
"
data-map
"
:
spec
.
map_children
||
null
}
});
}
// NOTE: needed to differentiate between PUT/POST
// TODO: block_identifier is only used for release_install, find better!
...
...
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