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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
81c920f1
Commit
81c920f1
authored
Mar 29, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix js error in MR remove branch failure handler
parent
a62ae94d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/merged_buttons.js
app/assets/javascripts/merged_buttons.js
+4
-4
No files found.
app/assets/javascripts/merged_buttons.js
View file @
81c920f1
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, max-len */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
)
{
return
function
()
{
return
fn
.
apply
(
me
,
arguments
);
};
};
this
.
MergedButtons
=
(
function
()
{
this
.
MergedButtons
=
(
function
()
{
function
MergedButtons
()
{
function
MergedButtons
()
{
this
.
removeSourceBranch
=
bind
(
this
.
removeSourceBranch
,
this
);
this
.
removeSourceBranch
=
this
.
removeSourceBranch
.
bind
(
this
);
this
.
removeBranchSuccess
=
this
.
removeBranchSuccess
.
bind
(
this
);
this
.
removeBranchError
=
this
.
removeBranchError
.
bind
(
this
);
this
.
$removeBranchWidget
=
$
(
'
.remove_source_branch_widget
'
);
this
.
$removeBranchWidget
=
$
(
'
.remove_source_branch_widget
'
);
this
.
$removeBranchProgress
=
$
(
'
.remove_source_branch_in_progress
'
);
this
.
$removeBranchProgress
=
$
(
'
.remove_source_branch_in_progress
'
);
this
.
$removeBranchFailed
=
$
(
'
.remove_source_branch_widget.failed
'
);
this
.
$removeBranchFailed
=
$
(
'
.remove_source_branch_widget.failed
'
);
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
MergedButtons
.
prototype
.
initEventListeners
=
function
()
{
MergedButtons
.
prototype
.
initEventListeners
=
function
()
{
$
(
document
).
on
(
'
click
'
,
'
.remove_source_branch
'
,
this
.
removeSourceBranch
);
$
(
document
).
on
(
'
click
'
,
'
.remove_source_branch
'
,
this
.
removeSourceBranch
);
$
(
document
).
on
(
'
ajax:success
'
,
'
.remove_source_branch
'
,
this
.
removeBranchSuccess
);
$
(
document
).
on
(
'
ajax:success
'
,
'
.remove_source_branch
'
,
this
.
removeBranchSuccess
);
return
$
(
document
).
on
(
'
ajax:error
'
,
'
.remove_source_branch
'
,
this
.
removeBranchError
);
$
(
document
).
on
(
'
ajax:error
'
,
'
.remove_source_branch
'
,
this
.
removeBranchError
);
};
};
MergedButtons
.
prototype
.
removeSourceBranch
=
function
()
{
MergedButtons
.
prototype
.
removeSourceBranch
=
function
()
{
...
...
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