Merge pull request #20 from OskarD/master

#15 Escape dots in jQuery div ID search
This commit is contained in:
Kam Low 2016-12-12 09:43:26 +01:00 committed by GitHub
commit c7a3633a69

View File

@ -121,7 +121,7 @@ Traverse.prototype._events = function() {
this.$element.on('click', 'a[href^="#"]', function(e) { //'click.zf.traverse'
e.preventDefault();
var arrival = this.getAttribute('href'),
var arrival = this.getAttribute('href').replace(".", "\\\\."),
scrollPos = $(arrival).offset().top - _this.options.barOffset; // - _this.options.threshold / 2 - _this.options.barOffset;
$body.stop(true).animate({