Mercurial > hg > documentViewer
diff zpt/viewer/layer_text_annotator.zpt @ 622:bc68ca0d2c0a
make annotationServerUrl work with protocol-relative URL (//).
author | casties |
---|---|
date | Fri, 12 Dec 2014 16:27:58 +0100 |
parents | a71ae589d342 |
children |
line wrap: on
line diff
--- a/zpt/viewer/layer_text_annotator.zpt Thu Dec 11 17:24:21 2014 +0100 +++ b/zpt/viewer/layer_text_annotator.zpt Fri Dec 12 16:27:58 2014 +0100 @@ -27,7 +27,7 @@ <!-- <script tal:attributes="src string:$rootUrl/template/annotator_files/lib/plugin/filter.js"></script> --> <script type="text/javascript" - tal:define="global annServerUrl string:https://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager; + tal:define="global annServerUrl string://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager; annUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s?pn=%s'%(docinfo['documentPath'],pageinfo['pn']); resUrl python:'http://echo.mpiwg-berlin.mpg.de/documents%s'%(docinfo['documentPath']); global annUser python:here.getAuthenticatedUser(anon='anonymous');