diff ViewerPlugin/OrthancExplorer.js @ 265:dab414e5b520 iiif

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Jul 2023 13:22:10 +0200
parents 14f182958ca7
children 0040ce361d4c
line wrap: on
line diff
--- a/ViewerPlugin/OrthancExplorer.js	Mon Jul 10 12:24:46 2023 +0200
+++ b/ViewerPlugin/OrthancExplorer.js	Mon Jul 10 13:22:10 2023 +0200
@@ -24,9 +24,11 @@
   var seriesId = $.mobile.pageData.uuid;
 
   $('#mirador-button').remove();
-  $('#series-iiif').remove();
   $('#wsi-button').remove();
 
+  $('#series-iiif-button').remove();
+  $('#series-access').listview("refresh");
+
   // Test whether this is a whole-slide image by check the SOP Class
   // UID of one instance of the series
   GetResource('/series/' + seriesId, function(series) {
@@ -56,16 +58,16 @@
 
       if (${SERVE_IIIF}) {
         var b = $('<a>')
-            .attr('id', 'series-iiif-button')
             .attr('data-role', 'button')
             .attr('href', '#')
             .text('Copy link to IIIF manifest');
 
         var li = $('<li>')
+            .attr('id', 'series-iiif-button')
             .attr('data-icon', 'gear')
             .append(b);
 
-        $('#series-access').append(li);
+        $('#series-access').append(li).listview("refresh");
 
         b.click(function(e) {
           if ($.mobile.pageData) {