]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Aug 2013 09:49:29 +0000 (09:49 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Aug 2013 09:49:29 +0000 (09:49 +0000)
js/libs/fluidbook/views/fluidbook.chapters.js

index e6f7c01ac860be5cfd5087271b55290b14dd68d4..dca8d87f86395b862de39c4cf4346b8bb6f56475 100644 (file)
@@ -38,20 +38,7 @@ FluidbookChapters.prototype = {
                }\r
                this.html = $(h).get(0).outerHTML;\r
 \r
-\r
-               if (this.style == 'classic') {\r
-                       $(document).on('click', 'ul.chapters a', function() {\r
-\r
-                               var li = $(this).parent();\r
-                               var subnav = $(li).children('ul');\r
-                               if ($(subnav).length) {\r
-                                       $(subnav).slideToggle();\r
-                                       return false;\r
-                               } else {\r
-                                       return true;\r
-                               }\r
-                       });\r
-               } else if (this.style == 'ina') {\r
+               if (this.style == 'ina') {\r
                        $(document).on('click', 'ul.chapters a .right', function(e) {\r
                                var p = $(this).data('page');\r
                                if (p != '') {\r
@@ -61,20 +48,19 @@ FluidbookChapters.prototype = {
                                        e.preventDefault();\r
                                        return false;\r
                                }\r
-\r
-                       });\r
-\r
-                       $(document).on('click', 'ul.chapters a', function() {\r
-                               var li = $(this).parent();\r
-                               var subnav = $(li).children('ul');\r
-                               if ($(subnav).length) {\r
-                                       $(subnav).slideToggle();\r
-                                       return false;\r
-                               } else {\r
-                                       return true;\r
-                               }\r
                        });\r
                }\r
+\r
+               $(document).on('click', 'ul.chapters a', function() {\r
+                       var li = $(this).parent();\r
+                       var subnav = $(li).children('ul');\r
+                       if ($(subnav).length) {\r
+                               $(subnav).slideToggle();\r
+                               return false;\r
+                       } else {\r
+                               return true;\r
+                       }\r
+               });\r
        },\r
        makeClassicMenu: function() {\r
                var $this = this;\r