Skip to content

jQuery 3 compatible #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"gfranko <[email protected]>"
],
"dependencies": {
"jquery": "~1.9.1",
"jquery-ui": "~1.10.3"
"jquery": "~3.5.1",
"jquery-ui": "~1.12.1"
},
"description": "A jQuery plugin that dynamically generates a table of contents.",
"main": "jquery.tocify.js",
"license": "MIT"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery.tocify",
"title": "jquery Tocify",
"description": "A jQuery plugin that creates a dynamic table of contents",
"version": "1.9.0",
"version": "1.9.1",
"homepage": "http://gregfranko.com/jquery.tocify.js/",
"author": {
"name": "Greg Franko",
Expand All @@ -28,4 +28,4 @@
"grunt-contrib-jshint": "~0.3.0"
},
"keywords": ["jQuery", "jQueryUI", "Twitter Bootstrap", "Table of Contents Plugin"]
}
}
7 changes: 3 additions & 4 deletions src/javascripts/jquery.tocify.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@
self._setEventHandlers();

// Binding to the Window load event to make sure the correct scrollTop is calculated
$(window).load(function() {

$(window).on("load", function() {
// Sets the active TOC item
self._setActiveElement(true);

Expand Down Expand Up @@ -319,12 +318,12 @@
elem.addClass(self.focusClass);

// If the showAndHide option is true
if(self.options.showAndHide) {
// if(self.options.showAndHide) {

// Triggers the click event on the currently focused TOC item
elem.click();

}
// }

}

Expand Down
4 changes: 0 additions & 4 deletions src/javascripts/jquery.tocify.min.js

This file was deleted.