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
f9313d66
Commit
f9313d66
authored
Feb 05, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localStorage: ALLDOCS replaced 404 with [] if no docs found
parent
750686ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+2
-15
No files found.
src/jio.storage/localstorage.js
View file @
f9313d66
...
...
@@ -348,10 +348,7 @@ jIO.addStorageType('local', function (spec, my) {
}
}
all_doc_response
.
total_rows
=
items
;
if
(
items
>
0
)
{
that
.
success
(
all_doc_response
);
return
;
}
that
.
success
(
all_doc_response
);
}
else
{
// create complex query object from returned results
for
(
i
in
localStorage
)
{
...
...
@@ -374,18 +371,8 @@ jIO.addStorageType('local', function (spec, my) {
},
query_object
);
if
(
items
>
0
)
{
that
.
success
(
query_response
);
return
;
}
that
.
success
(
query_response
);
}
that
.
error
({
"
status
"
:
404
,
"
statusText
"
:
"
Not Found
"
,
"
error
"
:
"
not_found
"
,
"
message
"
:
"
No documents found
"
,
"
reason
"
:
"
No documents found
"
});
};
return
that
;
...
...
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