diff options
author | Phil Hughes <me@iamphill.com> | 2017-12-11 12:28:11 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-11 12:28:11 +0000 |
commit | 6bb4442054a3804224f84c63fa7c5657508c4ec6 (patch) | |
tree | 87e7806344b74e7954e7284c045a1789873f7280 /app/assets/javascripts/notes.js | |
parent | a5d2732ce91e24fbb7ea8c9b087ba3c7476edc09 (diff) | |
download | gitlab-ce-6bb4442054a3804224f84c63fa7c5657508c4ec6.tar.gz |
updated importsurl-utility-es-module
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 4abbe6049b1..2a570ac705e 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -16,7 +16,7 @@ import Autosize from 'autosize'; import 'vendor/jquery.caret'; // required by jquery.atwho import 'vendor/jquery.atwho'; import AjaxCache from '~/lib/utils/ajax_cache'; -import * as urlUtils from './lib/utils/url_utility'; +import { getLocationHash } from './lib/utils/url_utility'; import Flash from './flash'; import CommentTypeToggle from './comment_type_toggle'; import GLForm from './gl_form'; @@ -331,7 +331,7 @@ export default class Notes { } static updateNoteTargetSelector($note) { - const hash = urlUtils.getLocationHash(); + const hash = getLocationHash(); // Needs to be an explicit true/false for the jQuery `toggleClass(force)` const addTargetClass = Boolean(hash && $note.filter(`#${hash}`).length > 0); $note.toggleClass('target', addTargetClass); |