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
ef0af6e9
Commit
ef0af6e9
authored
Sep 17, 2014
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed full screen functionality for image module in HTMLModule.
TNL-265
parent
3f23ce83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
common/lib/xmodule/xmodule/js/src/html/display.coffee
+2
-0
common/lib/xmodule/xmodule/js/src/html/imageModal.js
+4
-4
No files found.
common/lib/xmodule/xmodule/js/src/html/display.coffee
View file @
ef0af6e9
...
...
@@ -6,6 +6,8 @@ class @HTMLModule
Collapsible
.
setCollapsibles
(
@
el
)
if
MathJax
?
MathJax
.
Hub
.
Queue
[
"Typeset"
,
MathJax
.
Hub
,
@
el
[
0
]]
if
setupFullScreenModal
?
setupFullScreenModal
()
$
:
(
selector
)
->
$
(
selector
,
@
el
)
common/lib/xmodule/xmodule/js/src/html/imageModal.js
View file @
ef0af6e9
$
(
function
()
{
var
setupFullScreenModal
=
function
()
{
// Set up on page load
// Setup full screen image modal.
// Executed from HTMLModule in display.js.
$
(
"a.modal-content"
).
each
(
function
()
{
var
smallImageObject
=
$
(
this
).
children
();
var
largeImageSRC
=
$
(
this
).
attr
(
'href'
);
...
...
@@ -106,4 +107,4 @@ $(function() {
$
(
".wrapper-modal-image .image-content .image-controls .modal-ui-icon"
).
toggleClass
(
'is-disabled'
);
}
});
});
\ No newline at end of file
};
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