Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ed2aeb92
Commit
ed2aeb92
authored
May 05, 2015
by
Son Nguyen
Committed by
Gerrit Code Review
May 05, 2015
Browse files
Merge "Bug #1361450 - only add the greyed out overlay once in preview mode"
parents
2ca118fc
849f1870
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/js/preview.js
View file @
ed2aeb92
...
...
@@ -32,7 +32,9 @@ function showPreview(size, data) {
setElementDimensions
(
preview
,
{
'
w
'
:
width
});
setElementPosition
(
preview
,
{
'
x
'
:
xpos
,
'
y
'
:
vpos
.
y
+
200
});
showElement
(
preview
);
appendChildNodes
(
document
.
body
,
DIV
({
id
:
'
overlay
'
}));
if
(
!
$
(
'
overlay
'
))
{
appendChildNodes
(
document
.
body
,
DIV
({
id
:
'
overlay
'
}));
}
}
addLoadEvent
(
function
()
{
...
...
Write
Preview
Supports
Markdown
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