# HG changeset patch
# User hertzhaft
# Date 1474586276 -7200
# Node ID d1294e2c1c2844199049e9a654348e9c721e5a15
# Parent c1a390b47e07ae29c3a182261d5b464546182d6d
fix bug: jQuery.addClass does not work for SVG elements
diff -r c1a390b47e07 -r d1294e2c1c28 webapp/src/main/webapp/jquery/digilib-map.html
--- a/webapp/src/main/webapp/jquery/digilib-map.html Fri Sep 16 12:58:09 2016 +0200
+++ b/webapp/src/main/webapp/jquery/digilib-map.html Fri Sep 23 01:17:56 2016 +0200
@@ -6,9 +6,28 @@
Digilib jQuery: fullscreen
@@ -46,21 +65,32 @@
'buttonSets' : ['standardSet']
},
},
- // are annotations read-only?
// URL of annotation server
'annotationServerUrl' : 'http://localhost:3000/map',
// are annotations read-only?
'annotationsReadOnly' : false,
- // URL of annotation server
- 'annotationServerUrl' : 'http://hertz-test64.biblhertz.it:3000/map',
// URL of authentication token server
'annotationTokenUrl' : 'http://localhost:3000/token',
// list of Annotator plugins
'annotatorPlugins' : ['Auth', 'Markdown', 'DigilibIntegrator', 'Store', 'Tags']
};
+ var _loadAnnotationLayer = function(self, field, annotation) {
+ var layers = self.element.data('digilib').annotationdata.layers;
+ var select = $(field).find('#map_layer');
+ select.empty().removeAttr('disabled');
+ $.each(layers, function(index, layer) {
+ select.append($('