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
a0e03508
Commit
a0e03508
authored
Feb 12, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed check for lastmodified
parent
d4d7d09d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
js/libs/jio/replicatestorage.js
js/libs/jio/replicatestorage.js
+16
-16
No files found.
js/libs/jio/replicatestorage.js
View file @
a0e03508
...
@@ -293,14 +293,14 @@
...
@@ -293,14 +293,14 @@
ReplicateStorage
.
prototype
.
post
=
function
(
command
,
metadata
,
option
)
{
ReplicateStorage
.
prototype
.
post
=
function
(
command
,
metadata
,
option
)
{
var
promise_list
=
[],
index
,
length
=
this
.
_storage_list
.
length
;
var
promise_list
=
[],
index
,
length
=
this
.
_storage_list
.
length
;
if
(
!
isDate
(
metadata
.
modified
))
{
//
if (!isDate(metadata.modified)) {
command
.
error
(
//
command.error(
409
,
//
409,
"
invalid 'modified' metadata
"
,
//
"invalid 'modified' metadata",
"
The metadata 'modified' should be a valid date string or date object
"
//
"The metadata 'modified' should be a valid date string or date object"
);
//
);
return
;
//
return;
}
//
}
for
(
index
=
0
;
index
<
length
;
index
+=
1
)
{
for
(
index
=
0
;
index
<
length
;
index
+=
1
)
{
promise_list
[
index
]
=
success
(
promise_list
[
index
]
=
success
(
command
.
storage
(
this
.
_storage_list
[
index
]).
post
(
metadata
,
option
)
command
.
storage
(
this
.
_storage_list
[
index
]).
post
(
metadata
,
option
)
...
@@ -313,14 +313,14 @@
...
@@ -313,14 +313,14 @@
ReplicateStorage
.
prototype
.
put
=
function
(
command
,
metadata
,
option
)
{
ReplicateStorage
.
prototype
.
put
=
function
(
command
,
metadata
,
option
)
{
var
promise_list
=
[],
index
,
length
=
this
.
_storage_list
.
length
;
var
promise_list
=
[],
index
,
length
=
this
.
_storage_list
.
length
;
if
(
!
isDate
(
metadata
.
modified
))
{
//
if (!isDate(metadata.modified)) {
command
.
error
(
//
command.error(
409
,
//
409,
"
invalid 'modified' metadata
"
,
//
"invalid 'modified' metadata",
"
The metadata 'modified' should be a valid date string or date object
"
//
"The metadata 'modified' should be a valid date string or date object"
);
//
);
return
;
//
return;
}
//
}
for
(
index
=
0
;
index
<
length
;
index
+=
1
)
{
for
(
index
=
0
;
index
<
length
;
index
+=
1
)
{
promise_list
[
index
]
=
promise_list
[
index
]
=
command
.
storage
(
this
.
_storage_list
[
index
]).
put
(
metadata
,
option
);
command
.
storage
(
this
.
_storage_list
[
index
]).
put
(
metadata
,
option
);
...
...
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