Mercurial > hg > ismi-richfaces
comparison src/main/webapp/imageServer/resources/js/init.js @ 61:8cbc94004a64 remove_escidoc
comment out funny template code in js.
author | casties |
---|---|
date | Mon, 30 Nov 2015 16:16:01 +0100 |
parents | 764f47286679 |
children |
comparison
equal
deleted
inserted
replaced
60:4ec8d4cfad26 | 61:8cbc94004a64 |
---|---|
155 | 155 |
156 function handleDocumentLoaded(idx, fn) | 156 function handleDocumentLoaded(idx, fn) |
157 { | 157 { |
158 var witnesses = {}; | 158 var witnesses = {}; |
159 | 159 |
160 /* | |
160 // we could do this with an ajax request, but we have | 161 // we could do this with an ajax request, but we have |
161 // the variables already here, we just need to get them | 162 // the variables already here, we just need to get them |
162 // from Django and not JS. | 163 // from Django and not JS. |
163 {% for witness in content.witnesses %} | 164 {% for witness in content.witnesses %} |
164 {% if witness.start_page %} | 165 {% if witness.start_page %} |
165 witnesses[{{ witness.ismi_id }}] = {{ witness.start_page }}; | 166 witnesses[{{ witness.ismi_id }}] = {{ witness.start_page }}; |
166 {% endif %} | 167 {% endif %} |
167 {% endfor %} | 168 {% endfor %} |
169 */ | |
168 | 170 |
169 var urlParams = getURLParams(); | 171 var urlParams = getURLParams(); |
170 if (urlParams.hasOwnProperty('witness')) | 172 if (urlParams.hasOwnProperty('witness')) |
171 { | 173 { |
172 urlWitness = parseInt(urlParams['witness'], 10); | 174 urlWitness = parseInt(urlParams['witness'], 10); |