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
Boxiang Sun
gitlab-ce
Commits
ec43aaee
Commit
ec43aaee
authored
Feb 08, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
6f7702bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
app/assets/javascripts/profile/profile.js
app/assets/javascripts/profile/profile.js
+0
-18
No files found.
app/assets/javascripts/profile/profile.js
View file @
ec43aaee
...
@@ -33,9 +33,6 @@ import flash from '../flash';
...
@@ -33,9 +33,6 @@ import flash from '../flash';
$
(
'
input[name="user[multi_file]"]
'
).
on
(
'
change
'
,
this
.
setNewRepoCookie
);
$
(
'
input[name="user[multi_file]"]
'
).
on
(
'
change
'
,
this
.
setNewRepoCookie
);
$
(
'
#user_notification_email
'
).
on
(
'
change
'
,
this
.
submitForm
);
$
(
'
#user_notification_email
'
).
on
(
'
change
'
,
this
.
submitForm
);
$
(
'
#user_notified_of_own_activity
'
).
on
(
'
change
'
,
this
.
submitForm
);
$
(
'
#user_notified_of_own_activity
'
).
on
(
'
change
'
,
this
.
submitForm
);
$
(
'
.update-username
'
).
on
(
'
ajax:before
'
,
this
.
beforeUpdateUsername
);
$
(
'
.update-username
'
).
on
(
'
ajax:complete
'
,
this
.
afterUpdateUsername
);
$
(
'
.update-notifications
'
).
on
(
'
ajax:success
'
,
this
.
onUpdateNotifs
);
this
.
form
.
on
(
'
submit
'
,
this
.
onSubmitForm
);
this
.
form
.
on
(
'
submit
'
,
this
.
onSubmitForm
);
}
}
...
@@ -48,21 +45,6 @@ import flash from '../flash';
...
@@ -48,21 +45,6 @@ import flash from '../flash';
return
this
.
saveForm
();
return
this
.
saveForm
();
}
}
beforeUpdateUsername
()
{
$
(
'
.loading-username
'
,
this
).
removeClass
(
'
hidden
'
);
}
afterUpdateUsername
()
{
$
(
'
.loading-username
'
,
this
).
addClass
(
'
hidden
'
);
$
(
'
button[type=submit]
'
,
this
).
enable
();
}
onUpdateNotifs
(
e
,
data
)
{
return
data
.
saved
?
flash
(
__
(
'
Notification settings saved
'
),
'
notice
'
)
:
flash
(
__
(
'
Failed to save new settings
'
));
}
saveForm
()
{
saveForm
()
{
const
self
=
this
;
const
self
=
this
;
const
formData
=
new
FormData
(
this
.
form
[
0
]);
const
formData
=
new
FormData
(
this
.
form
[
0
]);
...
...
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