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
d319159d
Commit
d319159d
authored
Oct 25, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cheatsheet modal is accessible.
Use the leanModal stuff to show the cheatsheet dialog in the wiki. LMS-1303
parent
dc589f72
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
39 deletions
+24
-39
CHANGELOG.rst
+9
-6
lms/static/js/wiki/cheatsheet.js
+2
-5
lms/static/sass/course/wiki/_wiki.scss
+1
-20
lms/templates/wiki/includes/cheatsheet.html
+11
-7
lms/templates/wiki/includes/editor_widget.html
+1
-1
No files found.
CHANGELOG.rst
View file @
d319159d
...
@@ -5,11 +5,14 @@ These are notable changes in edx-platform. This is a rolling list of changes,
...
@@ -5,11 +5,14 @@ These are notable changes in edx-platform. This is a rolling list of changes,
in roughly chronological order, most recent first. Add your entries at or near
in roughly chronological order, most recent first. Add your entries at or near
the top. Include a label indicating the component affected.
the top. Include a label indicating the component affected.
Common: Add skip links for accessibility to CMS and LMS (LMS-1311)
LMS: The wiki markup cheatsheet dialog is now accessible to people with
disabilites. (LMS-1303)
Studio: Change course overview page, checklists, assets, and course staff management
Common: Add skip links for accessibility to CMS and LMS. (LMS-1311)
page URLs to a RESTful interface. Also removed "\listing", which duplicated
"\index".
Studio: Change course overview page, checklists, assets, and course staff
management page URLs to a RESTful interface. Also removed "\listing", which
duplicated "\index".
Blades: When start time and end time are specified for a video, a visual range
Blades: When start time and end time are specified for a video, a visual range
will be shown on the time slider to highlight the place in the video that will
will be shown on the time slider to highlight the place in the video that will
...
@@ -71,8 +74,8 @@ editing capability for a course's list of tabs.
...
@@ -71,8 +74,8 @@ editing capability for a course's list of tabs.
Studio and LMS: add ability to lock assets (cannot be viewed unless registered
Studio and LMS: add ability to lock assets (cannot be viewed unless registered
for class).
for class).
Studio: add restful interface for paging assets (no UX yet, but just add
/start/45/max/50 to end of url to get
Studio: add restful interface for paging assets (no UX yet, but just add
items 45-95, e.g.)
/start/45/max/50 to end of url to get
items 45-95, e.g.)
LMS: First round of improvements to New (beta) Instructor Dash:
LMS: First round of improvements to New (beta) Instructor Dash:
improvements, fixes, and internationalization to the Student Info section.
improvements, fixes, and internationalization to the Student Info section.
...
...
lms/static/js/wiki/cheatsheet.js
View file @
d319159d
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'#cheatsheetLink'
).
click
(
function
()
{
$
(
'#cheatsheetLink'
).
click
(
function
()
{
$
(
'#cheatsheetModal'
).
modal
(
'show'
);
$
(
'#cheatsheetModal'
).
leanModal
();
});
$
(
'#cheatsheetModal .close-btn'
).
click
(
function
(
e
)
{
$
(
'#cheatsheetModal'
).
modal
(
'hide'
);
});
});
accessible_modal
(
"#cheatsheetLink"
,
"#cheatsheetModal .close-modal"
,
"#cheatsheetModal"
,
".content-wrapper"
);
});
});
lms/static/sass/course/wiki/_wiki.scss
View file @
d319159d
...
@@ -586,9 +586,7 @@ section.wiki {
...
@@ -586,9 +586,7 @@ section.wiki {
}
}
#cheatsheetModal
{
#cheatsheetModal
{
width
:
950px
;
width
:
972px
;
margin-left
:
-450px
;
margin-top
:
-100px
;
.left-column
{
.left-column
{
margin-right
:
10px
;
margin-right
:
10px
;
...
@@ -599,23 +597,6 @@ section.wiki {
...
@@ -599,23 +597,6 @@ section.wiki {
float
:
left
;
float
:
left
;
width
:
450px
;
width
:
450px
;
}
}
.close-btn
{
display
:
block
;
position
:
absolute
;
top
:
-8px
;
right
:
-8px
;
width
:
30px
;
height
:
30px
;
border-radius
:
30px
;
border
:
1px
solid
#ccc
;
@include
linear-gradient
(
top
,
#eee
,
#d2d2d2
);
font-size
:
22px
;
line-height
:
28px
;
color
:
#333
;
text-align
:
center
;
box-shadow
:
0
1px
0
#fff
inset
,
0
1px
2px
rgba
(
0
,
0
,
0
,
.2
);
}
}
}
#cheatsheet-body
{
#cheatsheet-body
{
...
...
lms/templates/wiki/includes/cheatsheet.html
View file @
d319159d
{% load i18n %}
{% load i18n %}
<div
class=
"modal hide fade"
id=
"cheatsheetModal"
>
<section
id=
"cheatsheetModal"
class=
"modal"
aria-hidden=
"true"
>
<a
href=
"#"
class=
"close-btn"
>
×
</a>
<div
class=
"inner-wrapper"
role=
"dialog"
aria-labelledby=
"cheatsheet-title"
>
<button
class=
"close-modal"
>
✕
<span
class=
"sr"
>
{% trans 'Close Modal' %}
</span></button>
<header>
<h2
id=
"cheatsheet-title"
>
{% trans "Wiki Cheatsheet" %}
<span
class=
"sr"
>
, {% trans "modal open" %}
</span></h2>
<hr/>
</header>
<div
id=
"cheatsheet-body"
class=
"modal-body"
>
<div
id=
"cheatsheet-body"
class=
"modal-body"
>
<div
class=
"left-column"
>
<div
class=
"left-column"
>
<section>
<section>
...
@@ -19,10 +25,8 @@
...
@@ -19,10 +25,8 @@
Translators: Do not translate "edX"
Translators: Do not translate "edX"
{% endcomment %}
{% endcomment %}
<h3>
{% trans "edX Additions:" %}
</h3>
<h3>
{% trans "edX Additions:" %}
</h3>
<pre>
<pre>
circuit-schematic:
</pre>
circuit-schematic:
</pre>
<pre>
$LaTeX Math Expression$
</pre>
<pre>
$LaTeX Math Expression$
</pre>
</section>
</section>
</div>
</div>
...
@@ -61,4 +65,4 @@ $LaTeX Math Expression$</pre>
...
@@ -61,4 +65,4 @@ $LaTeX Math Expression$</pre>
</div>
</div>
</div>
</div>
</
div
>
</
section
>
lms/templates/wiki/includes/editor_widget.html
View file @
d319159d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
{% comment %}
{% comment %}
Translators: Do not translate 'cheatsheetLink'
Translators: Do not translate 'cheatsheetLink'
{% endcomment %}
{% endcomment %}
{% blocktrans with start_link="
<a
id=
'cheatsheetLink'
href=
'#'
>
" end_link="
</a>
" %}
{% blocktrans with start_link="
<a
id=
'cheatsheetLink'
href=
'#
cheatsheetModal'
rel=
'leanModal
'
>
" end_link="
</a>
" %}
Markdown syntax is allowed. See the {{ start_link }}cheatsheet{{ end_link }} for help.
Markdown syntax is allowed. See the {{ start_link }}cheatsheet{{ end_link }} for help.
{% endblocktrans %}
{% endblocktrans %}
</p>
</p>
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