Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Aug 22, 2019
1 parent c1c7d4c commit 1e643e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/assets/src/js/unify-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

href: function(id)
{
var self = this;

var duration = Number(this.get('duration', 500));
var easing = String(this.get('easing', 'swing'));

Expand All @@ -81,7 +83,10 @@
$('html:not(:animated),body:not(:animated)')
.animate({ scrollTop: top }, duration, easing, function()
{
window.location.href = newLocation;
if (Boolean(self.get('isLocationHref')) === true) {
window.location.href = newLocation;
}

});

return true;
Expand Down

0 comments on commit 1e643e8

Please sign in to comment.