Commit ed2aeb92 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug #1361450 - only add the greyed out overlay once in preview mode"

parents 2ca118fc 849f1870
......@@ -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() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment