Commit 849f1870 authored by Robert Lyon's avatar Robert Lyon
Browse files

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



On previewing a collection the greyed out overlay gets added each time
you click a collection page tab - it should only be added once.

Change-Id: Iebbd4a333438d629d252366a542981fbf2cf2fd6
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent ce311b0a
......@@ -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