Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Eteri
erp5
Commits
6dc7d8eb
Commit
6dc7d8eb
authored
Jun 18, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Update jIO v3.0.0
parent
263e4714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
...nderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
+21
-8
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
View file @
6dc7d8eb
...
...
@@ -8306,10 +8306,11 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
if
(is_manual_query_needed)
{\n
len =
result.length;\n
for
(
i =
0;
i
<
len;
i
+=
1)
{\n
result[i]
.doc.__id =
result[i].id;\n
data_rows.push(result[i].doc);\n
}\n
if
(options.select_list)
{\n
options.select_list.push("_id");\n
options.select_list.push("_
_
id");\n
}\n
result =
jIO.QueryFactory.create(options.query
||
"",\n
context._key_schema).\n
...
...
@@ -8328,13 +8329,13 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
len =
result.length;\n
for
(
i =
0;
i
<
len;
i
+=
1)
{\n
element =
{\n
id:
result[i]._id,\n
id:
result[i]._
_
id,\n
value:
options.select_list
?
result[i]
:
{},\n
doc:
{}\n
};\n
if
(options.select_list)
{\n
//
Does
not
work
if
user
manually
request
_id\n
delete
element.value._id;\n
//
Does
not
work
if
user
manually
request
_
_
id\n
delete
element.value._
_
id;\n
}\n
if
(options.include_docs)
{\n
//
XXX
To
implement\n
...
...
@@ -8801,7 +8802,7 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
}\n
\n
IndexedDBStorage.prototype.hasCapacity = function (name) {\n
return (
name === "list"
);\n
return (
(name === "list") || (name === "include")
);\n
};\n
\n
function buildKeyPath(key_list) {\n
...
...
@@ -8925,8 +8926,16 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
return new RSVP.Promise(resolver);\n
}\n
\n
IndexedDBStorage.prototype.buildQuery = function () {\n
IndexedDBStorage.prototype.buildQuery = function (
options
) {\n
var result_list = [];\n
\n
function pushIncludedMetadata(cursor) {\n
result_list.push({\n
"id": cursor.key,\n
"value": {},\n
"doc": cursor.value.doc\n
});\n
}\n
\n
function pushMetadata(cursor) {\n
result_list.push({\n
...
...
@@ -8937,6 +8946,10 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
return openIndexedDB(this)\n
.push(function (db) {\n
var tx = openTransaction(db, ["metadata"], "readonly");\n
if (options.include_docs === true) {\n
return handleCursor(tx.objectStore("metadata").index("_id")\n
.openCursor(), pushIncludedMetadata);\n
}\n
return handleCursor(tx.objectStore("metadata").index("_id")\n
.openKeyCursor(), pushMetadata);\n
})\n
...
...
@@ -9328,7 +9341,7 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
943.
26445.29550.22613
</string>
</value>
<value>
<string>
943.
49454.19396.29678
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -9346,7 +9359,7 @@ Query.searchTextToRegExp = searchTextToRegExp;\n
</tuple>
<state>
<tuple>
<float>
143
3838072.86
</float>
<float>
143
4614537.29
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
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