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
d283bb57
Commit
d283bb57
authored
Mar 29, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved bug fix to minified leanModal
parent
283ad48c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
static/js/jquery.leanModal.min.js
+3
-1
No files found.
static/js/jquery.leanModal.min.js
View file @
d283bb57
(
function
(
a
){
a
.
fn
.
extend
({
leanModal
:
function
(
b
){
function
e
(
b
){
a
(
"#lean_overlay"
).
fadeOut
(
200
);
a
(
b
).
css
({
display
:
"none"
})}
var
c
=
{
top
:
100
,
overlay
:.
5
,
closeButton
:
".modal_close"
};
var
d
=
a
(
"<div id='lean_overlay'></div>"
);
a
(
"body"
).
append
(
d
);
b
=
a
.
extend
(
c
,
b
);
return
this
.
each
(
function
(){
var
c
=
b
;
a
(
this
).
click
(
function
(
b
){
var
f
=
a
(
this
).
attr
(
"href"
);
a
(
".leanModal_box"
).
css
({
display
:
"none"
});
a
(
"body"
).
append
(
d
);
a
(
".leanModal_box"
).
append
(
'<a class="modal_close" href="#">✖</a>'
);
a
(
"#lean_overlay"
).
click
(
function
(){
e
(
f
)});
a
(
c
.
closeButton
).
click
(
function
(){
e
(
f
)});
var
g
=
a
(
f
).
outerHeight
();
var
h
=
a
(
f
).
outerWidth
();
a
(
"#lean_overlay"
).
css
({
display
:
"block"
,
opacity
:
0
});
a
(
"#lean_overlay"
).
fadeTo
(
200
,
c
.
overlay
);
a
(
f
).
css
({
display
:
"block"
,
position
:
"fixed"
,
opacity
:
0
,
"z-index"
:
11
e3
,
left
:
50
+
"%"
,
"margin-left"
:
-
(
h
/
2
)
+
"px"
,
top
:
c
.
top
+
"px"
});
var
i
=
a
(
f
).
offset
().
top
+
"px"
;
a
(
f
).
css
({
position
:
"absolute"
,
top
:
i
});
a
(
f
).
fadeTo
(
200
,
1
);
b
.
preventDefault
()})})}})})(
jQuery
)
(
function
(
a
){
a
.
fn
.
extend
({
leanModal
:
function
(
c
){
function
g
(
d
){
a
(
"#lean_overlay"
).
fadeOut
(
200
);
a
(
d
).
css
({
display
:
"none"
})}
var
e
=
a
(
"#lean_overlay"
);
0
==
e
.
length
&&
(
e
=
a
(
"<div id='lean_overlay'></div>"
),
a
(
"body"
).
append
(
e
));
c
=
a
.
extend
({
top
:
100
,
overlay
:
0.5
,
closeButton
:
".modal_close"
},
c
);
return
this
.
each
(
function
(){
var
d
=
c
;
a
(
this
).
click
(
function
(
c
){
var
b
=
a
(
this
).
attr
(
"href"
);
a
(
".leanModal_box"
).
css
({
display
:
"none"
});
a
(
"body"
).
append
(
e
);
a
(
".leanModal_box"
).
append
(
'<a class="modal_close" href="#">✖</a>'
);
a
(
"#lean_overlay"
).
click
(
function
(){
g
(
b
)});
a
(
d
.
closeButton
).
click
(
function
(){
g
(
b
)});
a
(
b
).
outerHeight
();
var
f
=
a
(
b
).
outerWidth
();
a
(
"#lean_overlay"
).
css
({
display
:
"block"
,
opacity
:
0
});
a
(
"#lean_overlay"
).
fadeTo
(
200
,
d
.
overlay
);
a
(
b
).
css
({
display
:
"block"
,
position
:
"fixed"
,
opacity
:
0
,
"z-index"
:
11
E3
,
left
:
"50%"
,
"margin-left"
:
-
(
f
/
2
)
+
"px"
,
top
:
d
.
top
+
"px"
});
f
=
a
(
b
).
offset
().
top
+
"px"
;
a
(
b
).
css
({
position
:
"absolute"
,
top
:
f
});
a
(
b
).
fadeTo
(
200
,
1
);
c
.
preventDefault
()})})}})})(
jQuery
);
\ 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