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
68d63d5f
Commit
68d63d5f
authored
Mar 18, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localstorage allDocs returns attachments, fixed.
parent
b1145bbb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+1
-1
test/jiotests.js
test/jiotests.js
+10
-0
No files found.
src/jio.storage/localstorage.js
View file @
68d63d5f
...
...
@@ -347,7 +347,7 @@ jIO.addStorageType('local', function (spec, my) {
*/
that
.
allDocs
=
function
(
command
)
{
var
i
,
j
,
file
,
items
=
0
,
s
=
new
RegExp
(
priv
.
localpath
+
'
\\
/.*$
'
),
s
=
new
RegExp
(
"
^
"
+
priv
.
localpath
+
"
\\
/[^/]+$
"
),
all_doc_response
=
{},
query_object
=
[],
query_syntax
,
query_response
=
[];
...
...
test/jiotests.js
View file @
68d63d5f
...
...
@@ -1118,6 +1118,16 @@ test ("AllDocs", function(){
o
.
fakeDoc
.
title
=
o
.
titles
[
i
];
o
.
fakeDoc
.
year
=
o
.
years
[
i
];
o
.
fakeDoc
.
author
=
o
.
director
[
i
];
if
(
i
===
5
)
{
o
.
fakeDoc
.
_attachments
=
{
"
att
"
:
{
"
digest
"
:
"
md5-dontcare
"
,
"
content_type
"
:
"
text/plain
"
,
"
length
"
:
3
}
};
localstorage
.
setItem
(
o
.
localpath
+
"
/doc_05/att
"
,
"
abc
"
);
}
localstorage
.
setItem
(
o
.
localpath
+
"
/doc_
"
+
(
i
<
10
?
"
0
"
+
i
:
i
),
o
.
fakeDoc
);
}
...
...
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