triple-pane: do not try to rework UI using javascript while in CDM

This commit is contained in:
Andrew Dolgov 2010-12-27 12:40:46 +03:00
parent 622586166a
commit f52df691c3

View file

@ -1,14 +1,18 @@
function themeBeforeLayout() { function themeBeforeLayout() {
if ($("content-insert")) {
$("headlines-wrap-inner").setAttribute("design", 'sidebar'); $("headlines-wrap-inner").setAttribute("design", 'sidebar');
$("content-insert").setAttribute("region", "trailing"); $("content-insert").setAttribute("region", "trailing");
$("content-insert").setStyle({ $("content-insert").setStyle({
width: '50%', width: '50%',
height: 'auto'}); height: 'auto'});
} }
}
function themeAfterLayout() { function themeAfterLayout() {
if ($("content-insert")) {
$("headlines-toolbar").setStyle({ $("headlines-toolbar").setStyle({
'border-right-width': '1px', 'border-right-width': '1px',
'border-color': '#88b0f0', 'border-color': '#88b0f0',
}); });
} }
}