Skip to content

Commit

Permalink
fix: attempt fix for post highlight, references #947
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Oct 7, 2020
1 parent e73ab2c commit 1dab923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ept-posts/client/posts/posts.controller.js
Expand Up @@ -34,9 +34,9 @@ var ctrl = [
delete $location.$$search.page;
$location.$$compose();
}
$timeout(function() { highlight($location.hash()); }, 1000);
$timeout(function() { highlight($location.hash()); }, 0);
}
else { $timeout($anchorScroll); }
else { $timeout($anchorScroll, 0); }

// Posts Permissions
this.canPost = function() {
Expand Down Expand Up @@ -306,7 +306,7 @@ var ctrl = [
$timeout(function() {
highlight($location.hash());
$anchorScroll();
});
}, 0);
};

function highlight(postId) {
Expand Down

0 comments on commit 1dab923

Please sign in to comment.