# HG changeset patch
# User am@osimis.io
# Date 1545819317 -3600
# Node ID b89a4288d60521c924be884141d490d7ed938bef
# Parent fa5ad4368fe39f3c92f9abaf8eac6eca7755e5ef
Fixed Orthanc Explorer on IE and Firefox: Explorer always show 'to many results'
diff -r fa5ad4368fe3 -r b89a4288d605 NEWS
--- a/NEWS Mon Dec 24 11:41:20 2018 +0100
+++ b/NEWS Wed Dec 26 11:15:17 2018 +0100
@@ -5,6 +5,8 @@
-----------
* Fix issue #118 (Wording in Configuration.json regarding SynchronousCMove)
+* Fixed Orthanc Explorer on IE and Firefox: Explorer always show "to many results"
+ and it's therefore impossible to browse the content.
Version 1.5.1 (2018-12-20)
diff -r fa5ad4368fe3 -r b89a4288d605 OrthancExplorer/explorer.js
--- a/OrthancExplorer/explorer.js Mon Dec 24 11:41:20 2018 +0100
+++ b/OrthancExplorer/explorer.js Wed Dec 26 11:15:17 2018 +0100
@@ -1384,16 +1384,18 @@
.attr('data-role', 'list-divider')
.text('General information about the job'));
- let block = $('
');
- for (let i in job) {
- if (i == 'CreationTime' ||
- i == 'CompletionTime' ||
- i == 'EstimatedTimeOfArrival') {
- AddJobDateField(block, i + ': ', job[i]);
- } else if (i != 'InternalContent' &&
- i != 'Content' &&
- i != 'Timestamp') {
- AddJobField(block, i + ': ', job[i]);
+ {
+ let block = $('');
+ for (let i in job) {
+ if (i == 'CreationTime' ||
+ i == 'CompletionTime' ||
+ i == 'EstimatedTimeOfArrival') {
+ AddJobDateField(block, i + ': ', job[i]);
+ } else if (i != 'InternalContent' &&
+ i != 'Content' &&
+ i != 'Timestamp') {
+ AddJobField(block, i + ': ', job[i]);
+ }
}
}
@@ -1403,17 +1405,19 @@
.attr('data-role', 'list-divider')
.text('Detailed information'));
- let block = $('');
+ {
+ let block = $('');
- for (let item in job.Content) {
- let value = job.Content[item];
- if (typeof value !== 'string') {
- value = JSON.stringify(value);
+ for (let item in job.Content) {
+ let value = job.Content[item];
+ if (typeof value !== 'string') {
+ value = JSON.stringify(value);
+ }
+
+ AddJobField(block, item + ': ', value);
}
-
- AddJobField(block, item + ': ', value);
}
-
+
target.append(block);
target.listview('refresh');