weblib: do not allow click on last image
[fanfix.git] / src / be / nikiroo / fanfix / library / WebLibraryServerHtml.java
index d5ba533f27b5ac746c631ccb2457ea3c3aa3649f..524fea36182ed1874c3f7946e6d86fd3578e9801 100644 (file)
@@ -247,6 +247,12 @@ abstract class WebLibraryServerHtml implements Runnable {
                                                                        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);
@@ -642,8 +648,10 @@ abstract class WebLibraryServerHtml implements Runnable {
                                        }
 
                                        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));