mimeType = "text/html";
} else if (uri.endsWith(".js")) {
mimeType = "text/javascript";
+ } else if (uri.endsWith(".png")) {
+ mimeType = "image/png";
+ } else if (uri.endsWith(".ico")) {
+ mimeType = "image/x-icon";
+ } else if (uri.endsWith(".java")) {
+ mimeType = "text/plain";
}
rep = newChunkedResponse(Status.OK, mimeType,
in);
}
viewerItem = templates.viewerImage(WebLibraryUrls
- .getStoryUrl(luid, chapter, paragraph), next,
- zoomStyle);
+ .getStoryUrl(luid, chapter, paragraph), //
+ disabledRight ? null : next, //
+ zoomStyle //
+ );
} else {
viewerItem = templates.viewerText(null,
new TextOutput(false).convert(para));