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
a41bdb46
Commit
a41bdb46
authored
Feb 06, 2014
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2476 from ionis-education-group/bodyclass-without-js
Stop using JavaScript to set the body's CSS class
parents
4636b270
5835ecf7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
15 deletions
+11
-15
lms/templates/login.html
+3
-3
lms/templates/register-shib.html
+3
-3
lms/templates/register.html
+3
-3
lms/templates/registration/password_reset_complete.html
+1
-3
lms/templates/registration/password_reset_confirm.html
+1
-3
No files found.
lms/templates/login.html
View file @
a41bdb46
...
@@ -7,14 +7,14 @@
...
@@ -7,14 +7,14 @@
<
%
block
name=
"pagetitle"
>
${_("Log into your {platform_name} Account").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"pagetitle"
>
${_("Log into your {platform_name} Account").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-login
</
%
block>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
view_name
=
'view-login'
;
// adding js class for styling with accessibility in mind
// adding js class for styling with accessibility in mind
$
(
'body'
).
addClass
(
'js'
)
.
addClass
(
view_name
)
;
$
(
'body'
).
addClass
(
'js'
);
// show forgot password modal UI if URL contains matching DOM ID
// show forgot password modal UI if URL contains matching DOM ID
if
(
$
.
deparam
.
fragment
()[
'forgot-password-modal'
]
!==
undefined
)
{
if
(
$
.
deparam
.
fragment
()[
'forgot-password-modal'
]
!==
undefined
)
{
...
...
lms/templates/register-shib.html
View file @
a41bdb46
...
@@ -14,14 +14,14 @@
...
@@ -14,14 +14,14 @@
<
%
block
name=
"pagetitle"
>
${_("Preferences for {platform_name}").format(platform_name=settings.PLATFORM_NAME)}
</
%
block>
<
%
block
name=
"pagetitle"
>
${_("Preferences for {platform_name}").format(platform_name=settings.PLATFORM_NAME)}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-register
</
%
block>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
view_name
=
'view-register'
;
// adding js class for styling with accessibility in mind
// adding js class for styling with accessibility in mind
$
(
'body'
).
addClass
(
'js'
)
.
addClass
(
view_name
)
;
$
(
'body'
).
addClass
(
'js'
);
// new window/tab opening
// new window/tab opening
$
(
'a[rel="external"], a[class="new-vp"]'
)
$
(
'a[rel="external"], a[class="new-vp"]'
)
...
...
lms/templates/register.html
View file @
a41bdb46
...
@@ -16,14 +16,14 @@
...
@@ -16,14 +16,14 @@
<
%
block
name=
"pagetitle"
>
${_("Register for {platform_name}").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"pagetitle"
>
${_("Register for {platform_name}").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-register
</
%
block>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
view_name
=
'view-register'
;
// adding js class for styling with accessibility in mind
// adding js class for styling with accessibility in mind
$
(
'body'
).
addClass
(
'js'
)
.
addClass
(
view_name
)
;
$
(
'body'
).
addClass
(
'js'
);
// new window/tab opening
// new window/tab opening
$
(
'a[rel="external"], a[class="new-vp"]'
)
$
(
'a[rel="external"], a[class="new-vp"]'
)
...
...
lms/templates/registration/password_reset_complete.html
View file @
a41bdb46
...
@@ -23,10 +23,8 @@
...
@@ -23,10 +23,8 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
view_name
=
'view-passwordreset'
;
// adding js class for styling with accessibility in mind
// adding js class for styling with accessibility in mind
$
(
'body'
).
addClass
(
'js'
)
.
addClass
(
view_name
)
;
$
(
'body'
).
addClass
(
'js'
);
// new window/tab opening
// new window/tab opening
$
(
'a[rel="external"], a[class="new-vp"]'
)
$
(
'a[rel="external"], a[class="new-vp"]'
)
...
...
lms/templates/registration/password_reset_confirm.html
View file @
a41bdb46
...
@@ -27,10 +27,8 @@
...
@@ -27,10 +27,8 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
view_name
=
'view-passwordreset'
;
// adding js class for styling with accessibility in mind
// adding js class for styling with accessibility in mind
$
(
'body'
).
addClass
(
'js'
)
.
addClass
(
view_name
)
;
$
(
'body'
).
addClass
(
'js'
);
// new window/tab opening
// new window/tab opening
$
(
'a[rel="external"], a[class="new-vp"]'
)
$
(
'a[rel="external"], a[class="new-vp"]'
)
...
...
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