BigW Consortium Gitlab
When `window.location.hash` is pointing to a note, e.g. `#note_1234`, `scrollToElement` would throw an error because a selector such as `.commits #note_1234` doesn't exist, so `offset()` returned `undefined`. This error would prevent subsequent calls from running, which caused the loading spinner to never be hidden. Now we ensure the selector returns a valid element before trying to scroll to it.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
behaviors | Loading commit data... | |
blob | Loading commit data... | |
ci | Loading commit data... | |
commit | Loading commit data... | |
extensions | Loading commit data... | |
lib | Loading commit data... | |
activities.js.coffee | Loading commit data... | |
admin.js.coffee | Loading commit data... | |
api.js.coffee | Loading commit data... | |
application.js.coffee | Loading commit data... | |
aside.js.coffee | Loading commit data... | |
autosave.js.coffee | Loading commit data... | |
branch-graph.js.coffee | Loading commit data... | |
calendar.js.coffee | Loading commit data... | |
commit.js.coffee | Loading commit data... | |
commits.js.coffee | Loading commit data... | |
confirm_danger_modal.js.coffee | Loading commit data... | |
dashboard.js.coffee | Loading commit data... | |
diff.js.coffee | Loading commit data... | |
dispatcher.js.coffee | Loading commit data... | |
dropzone_input.js.coffee | Loading commit data... | |
flash.js.coffee | Loading commit data... | |
gfm_auto_complete.js.coffee | Loading commit data... | |
group_avatar.js.coffee | Loading commit data... | |
groups.js.coffee | Loading commit data... | |
groups_select.js.coffee | Loading commit data... | |
importer_status.js.coffee | Loading commit data... | |
issuable_context.js.coffee | Loading commit data... | |
issuable_form.js.coffee | Loading commit data... | |
issue.js.coffee | Loading commit data... | |
issues.js.coffee | Loading commit data... | |
labels.js.coffee | Loading commit data... | |
line_highlighter.js.coffee | Loading commit data... | |
merge_request.js.coffee | Loading commit data... | |
merge_request_tabs.js.coffee | Loading commit data... | |
merge_request_widget.js.coffee | Loading commit data... | |
merge_requests.js.coffee | Loading commit data... | |
milestone.js.coffee | Loading commit data... | |
namespace_select.js.coffee | Loading commit data... | |
network.js.coffee | Loading commit data... | |
notes.js.coffee | Loading commit data... | |
pager.js.coffee | Loading commit data... | |
profile.js.coffee | Loading commit data... | |
project.js.coffee | Loading commit data... | |
project_avatar.js.coffee | Loading commit data... | |
project_fork.js.coffee | Loading commit data... | |
project_import.js.coffee | Loading commit data... | |
project_members.js.coffee | Loading commit data... | |
project_new.js.coffee | Loading commit data... | |
project_show.js.coffee | Loading commit data... | |
projects_list.js.coffee | Loading commit data... | |
protected_branches.js.coffee | Loading commit data... | |
search_autocomplete.js.coffee | Loading commit data... | |
shortcuts.js.coffee | Loading commit data... | |
shortcuts_dashboard_navigation.js.coffee | Loading commit data... | |
shortcuts_issuable.coffee | Loading commit data... | |
shortcuts_navigation.coffee | Loading commit data... | |
shortcuts_network.js.coffee | Loading commit data... | |
sidebar.js.coffee | Loading commit data... | |
stat_graph.js.coffee | Loading commit data... | |
stat_graph_contributors.js.coffee | Loading commit data... | |
stat_graph_contributors_graph.js.coffee | Loading commit data... | |
stat_graph_contributors_util.js.coffee | Loading commit data... | |
subscription.js.coffee | Loading commit data... | |
syntax_highlight.coffee | Loading commit data... | |
tree.js.coffee | Loading commit data... | |
user.js.coffee | Loading commit data... | |
users_select.js.coffee | Loading commit data... | |
wikis.js.coffee | Loading commit data... | |
zen_mode.js.coffee | Loading commit data... |