File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
examples/deepzoom/templates Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,18 @@ <h1>Slide properties</h1>
106
106
< script type ="text/javascript " src ="static/jquery.js "> </ script >
107
107
< script type ="text/javascript " src ="static/OpenSeadragon.js "> </ script >
108
108
< script type ="text/javascript ">
109
+ // Override hardcoded icon paths
110
+ var UnwrappedConfig = Seadragon . Config ;
111
+ Seadragon . Config = function ( ) {
112
+ UnwrappedConfig . apply ( this ) ;
113
+ $ . each ( this . navImages , function ( k , v ) {
114
+ $ . each ( v , function ( kk , vv ) {
115
+ var elements = vv . split ( '/' ) ;
116
+ v [ kk ] = 'static/images/' + elements [ elements . length - 1 ] ;
117
+ } ) ;
118
+ } ) ;
119
+ } ;
120
+
109
121
$ ( document ) . ready ( function ( ) {
110
122
var dzi_data = { { dzi_data | default ( '{}' ) | safe } } ;
111
123
var viewer ;
You can’t perform that action at this time.
0 commit comments