Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
bdde1599
Commit
bdde1599
authored
Feb 02, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More edits to the profile page
parent
1b0f03d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
profile.html
+6
-2
sass/_profile.scss
+18
-0
No files found.
profile.html
View file @
bdde1599
...
...
@@ -64,8 +64,9 @@ var loc=true; // Activate on clicks? Not if already clicked.
var
lang
=
true
;
$
(
function
()
{
$
(
"#change_location"
).
click
(
function
()
{
$
(
this
).
hide
();
log_event
(
"profile"
,
{
"type"
:
"location_show"
,
"old"
:
$
(
"#location_sub"
).
text
()});
$
(
"#change-location"
).
hide
();
if
(
loc
)
{
$
(
"#description"
).
html
(
'<div>'
+
...
...
@@ -78,7 +79,8 @@ $(function() {
$
(
"#location_sub"
).
html
(
'<input id="id_loc_text" type="text" name="loc_text" />'
+
'<input type="button" id="change_loc_button" value="Change" />'
);
$
(
"#change_loc_button"
).
click
(
function
()
{
$
(
"#change-location"
).
show
();
$
(
"#change_location"
).
show
();
postJSON
(
'/change_setting'
,
{
'location'
:
$
(
"#id_loc_text"
).
attr
(
"value"
)},
function
(
json
)
{
$
(
"#location_sub"
).
text
(
json
.
location
);
loc
=
true
;
...
...
@@ -90,6 +92,7 @@ $(function() {
});
$
(
"#change_language"
).
click
(
function
()
{
$
(
this
).
hide
();
log_event
(
"profile"
,
{
"type"
:
"language_show"
,
"old"
:
$
(
"#language_sub"
).
text
()});
if
(
lang
)
{
...
...
@@ -97,6 +100,7 @@ $(function() {
$
(
"#language_sub"
).
html
(
'<input id="id_lang_text" type="text" name="lang_text" />'
+
'<input type="button" id="change_lang_button" value="Change" />'
);
$
(
"#change_lang_button"
).
click
(
function
()
{
$
(
"#change_language"
).
show
();
postJSON
(
'/change_setting'
,
{
'language'
:
$
(
"#id_lang_text"
).
attr
(
"value"
)},
function
(
json
)
{
$
(
"#language_sub"
).
text
(
json
.
language
);
lang
=
true
;
...
...
sass/_profile.scss
View file @
bdde1599
...
...
@@ -23,11 +23,29 @@ div.profile-wrapper {
@include
box-shadow
(
0
1px
0
#eee
);
padding
:
7px
lh
();
border-bottom
:
1px
solid
#d3d3d3
;
div
#location_sub
,
div
#language_sub
{
font-weight
:
bold
;
@include
inline-block
();
input
{
margin
:
lh
(
.5
)
0
;
}
&
:empty
{
padding
:
0
;
}
}
div
#description
{
font-size
:
12px
;
}
}
}
div
#change_password_pop
{
padding
:
7px
lh
();
color
:
#4D4D4D
;
}
}
...
...
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