NIHVIVO-641 Updates to menupage-classgroup-people.ftl to utilize Brian's new data service that returns JSON. Still needs some work to degrade gracefully without JS.

This commit is contained in:
nac26 2011-01-03 13:45:30 +00:00
parent 66750dae60
commit 6f494c535c
5 changed files with 180 additions and 65 deletions

View file

@ -388,6 +388,9 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
// Let the page template know which page it's processing.
map.put("currentPage", vreq.getServletPath().replaceFirst("/", ""));
// Allow template to send domain name to JavaScript (needed for AJAX calls)
map.put("requestedPage", vreq.getRequestURL().toString());
return map;
}