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
3f3b3495
Commit
3f3b3495
authored
Mar 07, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added form and changes button to input so that users could hit enter on language and location
parent
3c8f64f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
profile.html
+4
-4
No files found.
profile.html
View file @
3f3b3495
...
...
@@ -29,8 +29,8 @@ $(function() {
loc
=
false
;
$
(
"#location_sub"
).
html
(
'<input id="id_loc_text" type="text" name="loc_text" />'
+
'<input type="button" id="change_loc_button" value="Change" /
>'
);
$
(
"#location_sub"
).
html
(
'<
form>'
+
'<
input id="id_loc_text" type="text" name="loc_text" />'
+
'<input type="submit" id="change_loc_button" value="Change" />'
+
'</form
>'
);
$
(
"#change_loc_button"
).
click
(
function
()
{
$
(
"#change_location"
).
show
();
...
...
@@ -50,8 +50,8 @@ $(function() {
if
(
lang
)
{
lang
=
false
;
$
(
"#language_sub"
).
html
(
'<input id="id_lang_text" type="text" name="lang_text" />'
+
'<input type="button" id="change_lang_button" value="Change" /
>'
);
$
(
"#language_sub"
).
html
(
'<
form>'
+
'<
input id="id_lang_text" type="text" name="lang_text" />'
+
'<input type="submit" id="change_lang_button" value="Change" />'
+
'</form
>'
);
$
(
"#change_lang_button"
).
click
(
function
()
{
$
(
"#change_language"
).
show
();
postJSON
(
'/change_setting'
,
{
'language'
:
$
(
"#id_lang_text"
).
attr
(
"value"
)},
function
(
json
)
{
...
...
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