Commit abfd9f29 authored by Tristan Cavelier's avatar Tristan Cavelier

complex_queries.js + jio.js updated

parent 07163a47
...@@ -888,12 +888,16 @@ Object.defineProperty(scope.ComplexQueries,"query",{ ...@@ -888,12 +888,16 @@ Object.defineProperty(scope.ComplexQueries,"query",{
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
result_list = [], result_list_tmp = [], j; result_list = [], result_list_tmp = [], j;
object_list = object_list || []; object_list = object_list || [];
for (j=0; j<object_list.length; ++j) { if (query.query === undefined) {
if ( itemMatchesQuery ( result_list = object_list;
object_list[j], scope.ComplexQueries.parse (query.query) } else {
)) { for (j=0; j<object_list.length; ++j) {
result_list.push(object_list[j]); if ( itemMatchesQuery (
} object_list[j], scope.ComplexQueries.parse (query.query)
)) {
result_list.push(object_list[j]);
}
}
} }
if (query.filter) { if (query.filter) {
select(result_list,query.filter.select_list || []); select(result_list,query.filter.select_list || []);
......
...@@ -2140,6 +2140,7 @@ var jobRules = (function () { ...@@ -2140,6 +2140,7 @@ var jobRules = (function () {
" putA " " " putA " "
" remove " update " remove " update
get get same doc, same options update get get same doc, same options update
getA getA same doc, same options update
allDocs allDocs same doc, same options update allDocs allDocs same doc, same options update
*/ */
...@@ -2190,6 +2191,8 @@ var jobRules = (function () { ...@@ -2190,6 +2191,8 @@ var jobRules = (function () {
that.addActionRule("get", "get", that.addActionRule("get", "get",
[that.sameDocument, that.sameOption], that.update); [that.sameDocument, that.sameOption], that.update);
that.addActionRule("getAttachment", "getAttachment",
[that.sameDocument, that.sameOption], that.update);
that.addActionRule("allDocs", "allDocs", that.addActionRule("allDocs", "allDocs",
[that.sameDocument, that.sameOption], that.update); [that.sameDocument, that.sameOption], that.update);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment