10000 Improving the router initialization checking logic: polling --> evented by adityamukho · Pull Request #14547 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Improving the router initialization checking logic: polling --> evented #14547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to loa 10000 d files.
Loading
Diff view
Diff view
Prev Previous commit
Removed unused scroll handler.
  • Loading branch information
Aditya Mukhopadhyay committed Jul 26, 2021
commit 427599702f08534b9fc3f9e1938f5af3ae97ddc9
Original file line number Diff line number Diff line change
Expand Up @@ -315,28 +315,12 @@
arangoHelper.initSigma();
}).bind(this);

// TODO: Should a UI function be part of the router?
$(window).on('resize', function () {
self.handleResize();
});

},

handleScroll: function () {
const secondaryNavbar = $('.navbar > .secondary');

if ($(window).scrollTop() > 50) {
secondaryNavbar.css('top', $(window).scrollTop());
secondaryNavbar.css('position', 'absolute');
secondaryNavbar.css('z-index', '10');
secondaryNavbar.css('width', $(window).width());
} else {
secondaryNavbar.css('top', '0');
secondaryNavbar.css('position', 'relative');
secondaryNavbar.css('width', '');
}
},

cluster: function () {
this.checkUser();

Expand Down
0