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
Jérome Perrin
gitlab-ce
Commits
31da4b07
Commit
31da4b07
authored
Jan 21, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Button by itself will submit forms. Button type button willn't
parent
c2093486
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/group_avatar.js
app/assets/javascripts/group_avatar.js
+2
-2
app/views/shared/_choose_group_avatar_button.html.haml
app/views/shared/_choose_group_avatar_button.html.haml
+1
-1
No files found.
app/assets/javascripts/group_avatar.js
View file @
31da4b07
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
(
function
()
{
(
function
()
{
this
.
GroupAvatar
=
(
function
()
{
this
.
GroupAvatar
=
(
function
()
{
function
GroupAvatar
()
{
function
GroupAvatar
()
{
$
(
'
.js-choose-group-avatar-button
'
).
bind
(
"
click
"
,
function
()
{
$
(
'
.js-choose-group-avatar-button
'
).
on
(
"
click
"
,
function
()
{
var
form
;
var
form
;
form
=
$
(
this
).
closest
(
"
form
"
);
form
=
$
(
this
).
closest
(
"
form
"
);
return
form
.
find
(
"
.js-group-avatar-input
"
).
click
();
return
form
.
find
(
"
.js-group-avatar-input
"
).
click
();
});
});
$
(
'
.js-group-avatar-input
'
).
bind
(
"
change
"
,
function
()
{
$
(
'
.js-group-avatar-input
'
).
on
(
"
change
"
,
function
()
{
var
filename
,
form
;
var
filename
,
form
;
form
=
$
(
this
).
closest
(
"
form
"
);
form
=
$
(
this
).
closest
(
"
form
"
);
filename
=
$
(
this
).
val
().
replace
(
/^.*
[\\\/]
/
,
''
);
filename
=
$
(
this
).
val
().
replace
(
/^.*
[\\\/]
/
,
''
);
...
...
app/views/shared/_choose_group_avatar_button.html.haml
View file @
31da4b07
%button
.choose-btn.btn.btn-sm.js-choose-group-avatar-button
%button
.choose-btn.btn.btn-sm.js-choose-group-avatar-button
{
type:
'button'
}
%i
.fa.fa-paperclip
%i
.fa.fa-paperclip
%span
Choose File ...
%span
Choose File ...
...
...
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