diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-06-15 15:58:27 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-15 15:58:27 +0000 |
commit | bce890820f6ed0e75537b546d5ef1a0090c53b52 (patch) | |
tree | a47c9f036bd4c52f74ffeded70c418f23ba57ae8 /app/assets/javascripts/notes.js | |
parent | 72770e609d755a1abe304025424b8a90b7337842 (diff) | |
download | gitlab-ce-bce890820f6ed0e75537b546d5ef1a0090c53b52.tar.gz |
Enable no-restricted-globals in JS files
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 55f1d0b496c..27c5dedcf0b 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -315,7 +315,7 @@ export default class Notes { if (discussionNoteForm.length) { if ($textarea.val() !== '') { if ( - !confirm('Are you sure you want to cancel creating this comment?') + !window.confirm('Are you sure you want to cancel creating this comment?') ) { return; } @@ -329,7 +329,7 @@ export default class Notes { newText = $textarea.val(); if (originalText !== newText) { if ( - !confirm('Are you sure you want to cancel editing this comment?') + !window.confirm('Are you sure you want to cancel editing this comment?') ) { return; } |