Skip to content

Commit

Permalink
Update plugin to version 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
malihu committed Apr 30, 2019
1 parent c7b03a7 commit 7c4f310
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions jquery.malihu.PageScroll2id.js
@@ -1,6 +1,6 @@
/*
== Page scroll to id ==
Version: 1.5.9
Version: 1.6.0
Plugin URI: http://manos.malihu.gr/page-scroll-to-id/
Author: malihu
Author URI: http://manos.malihu.gr
Expand Down Expand Up @@ -388,7 +388,7 @@ THE SOFTWARE.
/* finds the element that should be highlighted */

_findHighlight:function(id){
var wLoc=window.location,loc=wLoc.toString().split("#")[0],locPath=wLoc.pathname;
var wLoc=window.location,loc=escape(wLoc.toString().split("#")[0]),locPath=escape(wLoc.pathname);
return $("._"+pluginPfx+"-h[href='#"+id+"'],._"+pluginPfx+"-h[href='"+loc+"#"+id+"'],._"+pluginPfx+"-h[href='"+locPath+"#"+id+"'],._"+pluginPfx+"-h[href='#/"+id+"'],._"+pluginPfx+"-h[href='"+loc+"#/"+id+"'],._"+pluginPfx+"-h[href='"+locPath+"#/"+id+"']");
},

Expand Down

0 comments on commit 7c4f310

Please sign in to comment.