Commit 1bf46226 authored by Nigel McNie's avatar Nigel McNie

Reuse existing overlay for modal boxes when editing view blocks.

Darkened the colour of it a bit too.

It now covers everything, although this includes images that are in the
View in other blocks too.

Also fixed a bug where scrolling the page would mean the overlay didn't
cover the new part of the page that was in view.
parent a9415a00
......@@ -367,7 +367,7 @@ function ViewManager() {
setStyle(e, {'height': d.h+'px'});
hideElement(getFirstElementByTagAndClassName(null, 'mediaplayer', e));
});
addElementClass(cols, 'grey');
appendChildNodes(document.body, DIV({'id': 'overlay'}));
}
......@@ -377,7 +377,7 @@ function ViewManager() {
showElement(getFirstElementByTagAndClassName(null, 'mediaplayer', e));
setStyle(e, {'height': 'auto'});
});
removeElementClass(cols, 'grey');
removeElement('overlay');
}
......
......@@ -356,7 +356,7 @@ table#installer {
text-align: left;
}
#overlay {
position: absolute;
position: fixed;
top: 0;
left: 0;
width: 100%;
......@@ -2932,7 +2932,3 @@ table#initials .initial-letters {
.performanceinfo br {
display: none;
}
.grey {
background: url(../images/grey.png) repeat;
}
Markdown is supported
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