Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
PlanetRed
Commits
e1406706
Commit
e1406706
authored
15 years ago
by
Matthew Juhl
Browse files
Options
Downloads
Patches
Plain Diff
Solve IE issues with profile editor.
parent
c4613405
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
unl_theme/views/default/page_elements/header.php
+12
-11
12 additions, 11 deletions
unl_theme/views/default/page_elements/header.php
with
12 additions
and
11 deletions
unl_theme/views/default/page_elements/header.php
+
12
−
11
View file @
e1406706
...
@@ -167,7 +167,7 @@ if ($vars['title'] == "Edit profile") {
...
@@ -167,7 +167,7 @@ if ($vars['title'] == "Edit profile") {
html
+=
'
>
'
+
x
+
'
</option>
'
;
html
+=
'
>
'
+
x
+
'
</option>
'
;
}
}
selYear
.
innerHTML
=
html
;
$
(
selYear
).
html
(
html
)
;
var
selFrom
=
document
.
createElement
(
"
select
"
);
var
selFrom
=
document
.
createElement
(
"
select
"
);
...
@@ -182,7 +182,7 @@ if ($vars['title'] == "Edit profile") {
...
@@ -182,7 +182,7 @@ if ($vars['title'] == "Edit profile") {
html
+=
'
>
'
+
x
+
'
</option>
'
;
html
+=
'
>
'
+
x
+
'
</option>
'
;
}
}
selFrom
.
innerHTML
=
html
;
$
(
selFrom
).
html
(
html
)
;
from_parent
.
append
(
selFrom
);
from_parent
.
append
(
selFrom
);
var
selTo
=
document
.
createElement
(
"
select
"
);
var
selTo
=
document
.
createElement
(
"
select
"
);
...
@@ -197,12 +197,12 @@ if ($vars['title'] == "Edit profile") {
...
@@ -197,12 +197,12 @@ if ($vars['title'] == "Edit profile") {
html
+=
'
>
'
+
x
+
'
</option>
'
;
html
+=
'
>
'
+
x
+
'
</option>
'
;
}
}
selTo
.
innerHTML
=
html
;
$
(
selTo
).
html
(
html
)
;
from_parent
.
append
(
"
to
"
);
from_parent
.
append
(
"
to
"
);
from_parent
.
append
(
selTo
);
from_parent
.
append
(
selTo
);
to_parent
.
parent
().
remove
();
to_parent
.
parent
().
remove
();
var
states
=
[
""
,
"
AL
"
,
"
AK
"
,
"
AS
"
,
"
AZ
"
,
"
AR
"
,
"
CA
"
,
"
CO
"
,
"
CT
"
,
"
DE
"
,
"
DC
"
,
"
FM
"
,
"
FL
"
,
"
GA
"
,
"
GU
"
,
"
HI
"
,
"
ID
"
,
"
IL
"
,
"
IN
"
,
"
IA
"
,
"
KS
"
,
"
KY
"
,
"
LA
"
,
"
ME
"
,
"
MH
"
,
"
MD
"
,
"
MA
"
,
"
MI
"
,
"
MN
"
,
"
MS
"
,
"
MO
"
,
"
MT
"
,
"
NE
"
,
"
NJ
"
,
"
NM
"
,
"
NY
"
,
"
NC
"
,
"
ND
"
,
"
MP
"
,
"
OH
"
,
"
OK
"
,
"
OR
"
,
"
PW
"
,
"
PA
"
,
"
PR
"
,
"
RI
"
,
"
SC
"
,
"
SD
"
,
"
TN
"
,
"
TX
"
,
"
UT
"
,
"
VT
"
,
"
VI
"
,
"
VA
"
,
"
WA
"
,
"
WV
"
,
"
WI
"
,
"
WY
"
];
var
states
=
[
"
AL
"
,
"
AK
"
,
"
AS
"
,
"
AZ
"
,
"
AR
"
,
"
CA
"
,
"
CO
"
,
"
CT
"
,
"
DE
"
,
"
DC
"
,
"
FM
"
,
"
FL
"
,
"
GA
"
,
"
GU
"
,
"
HI
"
,
"
ID
"
,
"
IL
"
,
"
IN
"
,
"
IA
"
,
"
KS
"
,
"
KY
"
,
"
LA
"
,
"
ME
"
,
"
MH
"
,
"
MD
"
,
"
MA
"
,
"
MI
"
,
"
MN
"
,
"
MS
"
,
"
MO
"
,
"
MT
"
,
"
NE
"
,
"
NJ
"
,
"
NM
"
,
"
NY
"
,
"
NC
"
,
"
ND
"
,
"
MP
"
,
"
OH
"
,
"
OK
"
,
"
OR
"
,
"
PW
"
,
"
PA
"
,
"
PR
"
,
"
RI
"
,
"
SC
"
,
"
SD
"
,
"
TN
"
,
"
TX
"
,
"
UT
"
,
"
VT
"
,
"
VI
"
,
"
VA
"
,
"
WA
"
,
"
WV
"
,
"
WI
"
,
"
WY
"
];
var
countries
=
[
"
USA
"
,
var
countries
=
[
"
USA
"
,
"
Afghanistan
"
,
"
Afghanistan
"
,
...
@@ -412,11 +412,11 @@ if ($vars['title'] == "Edit profile") {
...
@@ -412,11 +412,11 @@ if ($vars['title'] == "Edit profile") {
/*if (current_country == "") {
/*if (current_country == "") {
html += '<option selected="selected" value="">-Select your country-</option>';
html += '<option selected="selected" value="">-Select your country-</option>';
}*/
}*/
selCountry
.
innerHTML
=
html
;
$
(
selCountry
).
html
(
html
)
;
var
selState
=
document
.
createElement
(
"
select
"
);
var
selState
=
document
.
createElement
(
"
select
"
);
selState
.
name
=
"
form_data_profile_state
"
;
selState
.
name
=
"
form_data_profile_state
"
;
html
=
""
;
html
=
'
<option value=""> </option>
'
;
for
(
var
i
=
0
,
l
=
states
.
length
;
i
<
l
;
i
++
){
for
(
var
i
=
0
,
l
=
states
.
length
;
i
<
l
;
i
++
){
html
+=
'
<option
'
;
html
+=
'
<option
'
;
if
(
states
[
i
]
==
current_state
)
{
if
(
states
[
i
]
==
current_state
)
{
...
@@ -427,7 +427,7 @@ if ($vars['title'] == "Edit profile") {
...
@@ -427,7 +427,7 @@ if ($vars['title'] == "Edit profile") {
/*if (current_state == "") {
/*if (current_state == "") {
html += '<option selected="selected" value=""> </option>';
html += '<option selected="selected" value=""> </option>';
}*/
}*/
selState
.
innerHTML
=
html
;
$
(
selState
).
html
(
html
)
;
var
selhomeCountry
=
document
.
createElement
(
"
select
"
);
var
selhomeCountry
=
document
.
createElement
(
"
select
"
);
selhomeCountry
.
name
=
"
form_data_profile_homecountry
"
;
selhomeCountry
.
name
=
"
form_data_profile_homecountry
"
;
...
@@ -442,11 +442,11 @@ if ($vars['title'] == "Edit profile") {
...
@@ -442,11 +442,11 @@ if ($vars['title'] == "Edit profile") {
/*if (home_country == "") {
/*if (home_country == "") {
html += '<option selected="selected" value="">-Select your country-</option>';
html += '<option selected="selected" value="">-Select your country-</option>';
}*/
}*/
selhomeCountry
.
innerHTML
=
html
;
$
(
selhomeCountry
).
html
(
html
)
;
var
selhomeState
=
document
.
createElement
(
"
select
"
);
var
selhomeState
=
document
.
createElement
(
"
select
"
);
selhomeState
.
name
=
"
form_data_profile_homestate
"
;
selhomeState
.
name
=
"
form_data_profile_homestate
"
;
html
=
""
;
html
=
'
<option value=""> </option>
'
;
for
(
var
i
=
0
,
l
=
states
.
length
;
i
<
l
;
i
++
){
for
(
var
i
=
0
,
l
=
states
.
length
;
i
<
l
;
i
++
){
html
+=
'
<option
'
;
html
+=
'
<option
'
;
if
(
states
[
i
]
==
home_state
)
{
if
(
states
[
i
]
==
home_state
)
{
...
@@ -457,7 +457,8 @@ if ($vars['title'] == "Edit profile") {
...
@@ -457,7 +457,8 @@ if ($vars['title'] == "Edit profile") {
/*if (home_state == "") {
/*if (home_state == "") {
html += '<option selected="selected" value=""> </option>';
html += '<option selected="selected" value=""> </option>';
}*/
}*/
selhomeState
.
innerHTML
=
html
;
console
.
log
(
'
html ======
'
+
html
);
$
(
selhomeState
).
html
(
html
);
$
(
"
input[name=form_data_profile_dob_month]
"
).
parent
().
append
(
selYear
);
$
(
"
input[name=form_data_profile_dob_month]
"
).
parent
().
append
(
selYear
);
country_parent
.
append
(
selCountry
);
country_parent
.
append
(
selCountry
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment