gitbook-plugin-toc-toggle
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -28,3 +28,2 @@ require(["gitbook", "jQuery"], function(gitbook, $) { | ||
gitbook.events.bind("page.change", function() { | ||
var $chapter = $('li.chapter.active'); | ||
@@ -36,5 +35,7 @@ bindEvent($chapter) | ||
$(document).on('click', 'a', function(event){ | ||
location.reload(true); | ||
if($(this).attr('href')=='./'){ | ||
location.reload(true); | ||
} | ||
}); | ||
$(document).on('click', 'span', function(event){ | ||
@@ -41,0 +42,0 @@ event.stopPropagation(); |
{ | ||
"name": "gitbook-plugin-toc-toggle", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "a plugins for gitbook for toc-toggle", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1667
49