Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
e97c2824
Commit
e97c2824
authored
Mar 10, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5storage.js put bug fix
parent
f581cfdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/jio.storage/erp5storage.js
src/jio.storage/erp5storage.js
+15
-1
No files found.
src/jio.storage/erp5storage.js
View file @
e97c2824
...
@@ -287,9 +287,23 @@
...
@@ -287,9 +287,23 @@
// XXX docstring
// XXX docstring
ERP5Storage
.
onView
.
default
.
put
=
function
(
metadata
,
options
)
{
ERP5Storage
.
onView
.
default
.
put
=
function
(
metadata
,
options
)
{
return
onViewDefaultGet
.
call
(
this
,
metadata
,
options
)
return
getSiteDocument
(
this
.
_url
).
then
(
function
(
site_hal
)
{
return
jIO
.
util
.
ajax
({
"
type
"
:
"
GET
"
,
"
url
"
:
UriTemplate
.
parse
(
site_hal
.
_links
.
traverse
.
href
)
.
expand
({
relative_url
:
metadata
.
_id
,
view
:
options
.
_view
||
"
view
"
}),
"
xhrFields
"
:
{
withCredentials
:
true
}
});
})
.
then
(
function
(
result
)
{
.
then
(
function
(
result
)
{
/*jslint forin: true */
/*jslint forin: true */
result
=
JSON
.
parse
(
result
.
target
.
responseText
);
var
put_action
=
result
.
_embedded
.
_view
.
_actions
.
put
,
var
put_action
=
result
.
_embedded
.
_view
.
_actions
.
put
,
renderer_form
=
result
.
_embedded
.
_view
,
renderer_form
=
result
.
_embedded
.
_view
,
data
=
new
FormData
(),
data
=
new
FormData
(),
...
...
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