Skip to content

Commit

Permalink
v1.3.4 - support for relative links in navigation links
Browse files Browse the repository at this point in the history
  • Loading branch information
jbutko committed Oct 20, 2016
1 parent e18fc8a commit e493991
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Include reference to jQuery library, jQuery easing plugin (optional), animate.CS
<!-- all these references goes before the closing body tag-->
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="//cdn.jsdelivr.net/stickynavbar.js/1.3.0/jquery.stickyNavbar.min.js"></script>
<script src="//cdn.jsdelivr.net/stickynavbar.js/1.3.3/jquery.stickyNavbar.min.js"></script>
```

## 2. HTML Markup
Expand Down Expand Up @@ -116,6 +116,10 @@ Copyright (C) 2014-2016 Jozef Butko<br>
[@jozefbutko](http://www.twitter.com/jozefbutko)

## Changelog
### 1.3.4
- support for relative links in navigation links
20/10/2016

### 1.3.3
- menuItemsHref incorrect selector causes errors - pull request #45 by @dimaip<br>
14/04/2016
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stickyNavbar.js",
"version": "1.3.3",
"version": "1.3.4",
"homepage": "https://github.com/jbutko/stickyNavbar.js",
"author": {
"name": "Jozef Butko",
Expand Down
5 changes: 3 additions & 2 deletions jquery.stickyNavbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* stickyNavbar.js v1.3.3
* stickyNavbar.js v1.3.4
* https://github.com/jbutko/stickyNavbar.js
* Fancy sticky navigation jQuery plugin with smart anchor links highlighting
*
Expand Down Expand Up @@ -81,7 +81,8 @@
}

// let normal links in navigation redirect to location
if (href.substring(0, 4) === 'http' || (href.substring(0, 5) === 'https' || href.substring(0, 7) === 'mailto:' || href.substring(0, 1) === '/')) {
if (href.substring(0, 4) === 'http' || (href.substring(0, 5) === 'https'
|| href.substring(0, 7) === 'mailto:' || href.substring(0, 1) === '/') || href.substring(0, 3) === '../') {
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions jquery.stickyNavbar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stickyNavbar.js",
"version": "1.3.3",
"version": "1.3.4",
"description": "Fancy sticky navigation jQuery plugin with smart anchor links highlighting",
"main": "jquery.stickyNavbar.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion stickyNavbar.js.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"navigation",
"sticky"
],
"version": "1.3.3",
"version": "1.3.4",
"author": {
"name": "Jozef Butko",
"email": "jbutko@gmail.com",
Expand Down

0 comments on commit e493991

Please sign in to comment.