Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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
Alexandra Rogova
jio_mebibou
Commits
c0aa7a7f
Commit
c0aa7a7f
authored
Apr 02, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add select_list option management
parent
b3a6839e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/jio.storage/indexeddbstorage.js
src/jio.storage/indexeddbstorage.js
+12
-3
No files found.
src/jio.storage/indexeddbstorage.js
View file @
c0aa7a7f
...
...
@@ -385,7 +385,7 @@
index_req
=
index
.
openCursor
();
date
=
Date
.
now
();
index_req
.
onsuccess
=
function
(
event
)
{
var
cursor
=
event
.
target
.
result
,
now
;
var
cursor
=
event
.
target
.
result
,
now
,
value
,
i
,
key
;
if
(
cursor
)
{
// Called for each matching record.
...
...
@@ -420,17 +420,26 @@
}
}
value
=
{};
// option.select_list management
if
(
option
.
select_list
)
{
for
(
i
=
0
;
i
<
option
.
select_list
.
length
;
i
+=
1
)
{
key
=
option
.
select_list
[
i
];
value
[
key
]
=
cursor
.
value
[
key
];
}
}
// option.include_docs management
if
(
option
.
include_docs
)
{
rows
.
push
({
"
id
"
:
cursor
.
value
.
_id
,
"
doc
"
:
cursor
.
value
,
"
value
"
:
{}
"
value
"
:
value
});
}
else
{
rows
.
push
({
"
id
"
:
cursor
.
value
.
_id
,
"
value
"
:
{}
"
value
"
:
value
});
}
...
...
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