Commit a5ba8a83 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_core/erp5_web_rjs_ui] jIO 3.40.0

parent 3a4a1c08
...@@ -15285,8 +15285,7 @@ return new Parser; ...@@ -15285,8 +15285,7 @@ return new Parser;
var index = parseInt( var index = parseInt(
cursor.primaryKey.slice(key_path.length + 1), cursor.primaryKey.slice(key_path.length + 1),
10 10
), );
i;
if ((start !== 0) && (index < start_index)) { if ((start !== 0) && (index < start_index)) {
// No need to fetch blobs at the start // No need to fetch blobs at the start
...@@ -15297,12 +15296,6 @@ return new Parser; ...@@ -15297,12 +15296,6 @@ return new Parser;
return; return;
} }
i = index - start_index;
// Extend array size
while (i > promise_list.length) {
promise_list.push(null);
i -= 1;
}
// Sort the blob by their index // Sort the blob by their index
promise_list.splice( promise_list.splice(
index - start_index, index - start_index,
...@@ -15336,7 +15329,7 @@ return new Parser; ...@@ -15336,7 +15329,7 @@ return new Parser;
{type: "application/octet-stream"}); {type: "application/octet-stream"});
index = Math.floor(start / UNITE) * UNITE; index = Math.floor(start / UNITE) * UNITE;
if (end === undefined) { if (end === undefined) {
end = blob.length; end = blob.size;
} else { } else {
end = end - index; end = end - index;
} }
...@@ -15359,13 +15352,8 @@ return new Parser; ...@@ -15359,13 +15352,8 @@ return new Parser;
var index = parseInt( var index = parseInt(
cursor.primaryKey.slice(key_path.length + 1), cursor.primaryKey.slice(key_path.length + 1),
10 10
), );
i = index;
// Extend array size
while (i > array_buffer_list.length) {
array_buffer_list.push(null);
i -= 1;
}
// Sort the blob by their index // Sort the blob by their index
array_buffer_list.splice( array_buffer_list.splice(
index, index,
...@@ -15407,7 +15395,7 @@ return new Parser; ...@@ -15407,7 +15395,7 @@ return new Parser;
blob = new Blob(array_buffer_list, blob = new Blob(array_buffer_list,
{type: attachment.info.content_type}); {type: attachment.info.content_type});
if (blob.length !== attachment.info.total_length) { if (blob.size !== attachment.info.length) {
throw new jIO.util.jIOError( throw new jIO.util.jIOError(
"IndexedDB: attachment '" + "IndexedDB: attachment '" +
buildKeyPath([id, name]) + buildKeyPath([id, name]) +
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>977.17610.605.30924</string> </value> <value> <string>978.21180.38418.37324</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1563892822.4</float> <float>1568036980.42</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -15285,8 +15285,7 @@ return new Parser; ...@@ -15285,8 +15285,7 @@ return new Parser;
var index = parseInt( var index = parseInt(
cursor.primaryKey.slice(key_path.length + 1), cursor.primaryKey.slice(key_path.length + 1),
10 10
), );
i;
if ((start !== 0) && (index < start_index)) { if ((start !== 0) && (index < start_index)) {
// No need to fetch blobs at the start // No need to fetch blobs at the start
...@@ -15297,12 +15296,6 @@ return new Parser; ...@@ -15297,12 +15296,6 @@ return new Parser;
return; return;
} }
i = index - start_index;
// Extend array size
while (i > promise_list.length) {
promise_list.push(null);
i -= 1;
}
// Sort the blob by their index // Sort the blob by their index
promise_list.splice( promise_list.splice(
index - start_index, index - start_index,
...@@ -15336,7 +15329,7 @@ return new Parser; ...@@ -15336,7 +15329,7 @@ return new Parser;
{type: "application/octet-stream"}); {type: "application/octet-stream"});
index = Math.floor(start / UNITE) * UNITE; index = Math.floor(start / UNITE) * UNITE;
if (end === undefined) { if (end === undefined) {
end = blob.length; end = blob.size;
} else { } else {
end = end - index; end = end - index;
} }
...@@ -15359,13 +15352,8 @@ return new Parser; ...@@ -15359,13 +15352,8 @@ return new Parser;
var index = parseInt( var index = parseInt(
cursor.primaryKey.slice(key_path.length + 1), cursor.primaryKey.slice(key_path.length + 1),
10 10
), );
i = index;
// Extend array size
while (i > array_buffer_list.length) {
array_buffer_list.push(null);
i -= 1;
}
// Sort the blob by their index // Sort the blob by their index
array_buffer_list.splice( array_buffer_list.splice(
index, index,
...@@ -15407,7 +15395,7 @@ return new Parser; ...@@ -15407,7 +15395,7 @@ return new Parser;
blob = new Blob(array_buffer_list, blob = new Blob(array_buffer_list,
{type: attachment.info.content_type}); {type: attachment.info.content_type});
if (blob.length !== attachment.info.total_length) { if (blob.size !== attachment.info.length) {
throw new jIO.util.jIOError( throw new jIO.util.jIOError(
"IndexedDB: attachment '" + "IndexedDB: attachment '" +
buildKeyPath([id, name]) + buildKeyPath([id, name]) +
......
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