Skip to content

Commit b9befc3

Browse files
committed
[BUGFIX] Invalid selector in linkWholeContainerForLeafItems
The selector ".leaf:first()" is invalid and is changed to ".leaf:first" to prevent JavaScript errors.
1 parent 55b6687 commit b9befc3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jquery.nestedlist.src.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jQuery.fn.nestedList = function(config) {
2626
function linkWholeContainerForLeafItems(container, linkSelector) {
2727
// link whole container area for hyperlinks in leaf items
2828
container.find(linkSelector || ".leaf a:first-of-type").each(function () {
29-
//var hlink = $(this);
30-
//hlink.parents(".leaf:first()").click(function () {
31-
// document.location.href = hlink.attr('href');
32-
// return false
33-
//}).css('cursor', 'pointer')
29+
var hlink = $(this);
30+
hlink.parents(".leaf:first").click(function () {
31+
document.location.href = hlink.attr('href');
32+
return false
33+
}).css('cursor', 'pointer')
3434
});
3535
}
3636

0 commit comments

Comments
 (0)