Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
90398da2
Commit
90398da2
authored
Nov 14, 2019
by
Lee Tickett
Committed by
Martin Wortschack
Nov 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove var from new_commit_form.js
parent
fc90f4f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app/assets/javascripts/new_commit_form.js
app/assets/javascripts/new_commit_form.js
+2
-3
changelogs/unreleased/remove_var_from_new_commit_form_js.yml
changelogs/unreleased/remove_var_from_new_commit_form_js.yml
+5
-0
No files found.
app/assets/javascripts/new_commit_form.js
View file @
90398da2
/* eslint-disable no-
var, no-
return-assign */
/* eslint-disable no-return-assign */
export
default
class
NewCommitForm
{
constructor
(
form
)
{
this
.
form
=
form
;
...
...
@@ -11,8 +11,7 @@ export default class NewCommitForm {
this
.
renderDestination
();
}
renderDestination
()
{
var
different
;
different
=
this
.
branchName
.
val
()
!==
this
.
originalBranch
.
val
();
const
different
=
this
.
branchName
.
val
()
!==
this
.
originalBranch
.
val
();
if
(
different
)
{
this
.
createMergeRequestContainer
.
show
();
if
(
!
this
.
wasDifferent
)
{
...
...
changelogs/unreleased/remove_var_from_new_commit_form_js.yml
0 → 100644
View file @
90398da2
---
title
:
Remove var from new_commit_form.js
merge_request
:
20095
author
:
Lee Tickett
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment