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
1a6a0a32
Commit
1a6a0a32
authored
Jan 02, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
splitstorage.js getAttachment no response fixed
parent
d3d10cfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/jio.storage/splitstorage.js
src/jio.storage/splitstorage.js
+5
-7
No files found.
src/jio.storage/splitstorage.js
View file @
1a6a0a32
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*/
*/
/*jslint indent:2, maxlen: 80, nomen: true */
/*jslint indent:2, maxlen: 80, nomen: true */
/*global jIO, define */
/*global jIO, define
, Blob
*/
/**
/**
* Provides a split storage for JIO. This storage splits data
* Provides a split storage for JIO. This storage splits data
...
@@ -462,17 +462,15 @@
...
@@ -462,17 +462,15 @@
err
,
err
,
response
response
)
{
)
{
var
i
,
doc
;
if
(
err
)
{
if
(
err
)
{
err
.
message
=
"
Unable to get attachment
"
;
err
.
message
=
"
Unable to get attachment
"
;
delete
err
.
index
;
delete
err
.
index
;
return
command
.
error
(
err
);
return
command
.
error
(
err
);
}
}
doc
=
''
;
for
(
i
=
0
;
i
<
response
.
length
;
i
+=
1
)
{
command
.
success
({
"
data
"
:
new
Blob
(
response
.
map
(
function
(
answer
)
{
doc
+=
response
[
i
].
data
;
return
answer
.
data
;
}
}),
{
"
type
"
:
response
[
0
].
data
.
type
})});
that
.
success
({
"
data
"
:
doc
});
// XXX get mimetype
});
});
};
};
...
...
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