summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-12-27 12:40:46 +0300
committerAndrew Dolgov <[email protected]>2010-12-27 12:40:46 +0300
commitf52df691c3c8797a6a97914167c6b4873a273a28 (patch)
treeea23d7c9824d1279e1e896b538db4cc9696f1986 /themes
parent622586166aaa5b87470afa49deeeed9aa5a565d4 (diff)
triple-pane: do not try to rework UI using javascript while in CDM
Diffstat (limited to 'themes')
-rw-r--r--themes/triple-pane/theme.js22
1 files changed, 13 insertions, 9 deletions
diff --git a/themes/triple-pane/theme.js b/themes/triple-pane/theme.js
index 088055306..2fddab03b 100644
--- a/themes/triple-pane/theme.js
+++ b/themes/triple-pane/theme.js
@@ -1,14 +1,18 @@
function themeBeforeLayout() {
- $("headlines-wrap-inner").setAttribute("design", 'sidebar');
- $("content-insert").setAttribute("region", "trailing");
- $("content-insert").setStyle({
- width: '50%',
- height: 'auto'});
+ if ($("content-insert")) {
+ $("headlines-wrap-inner").setAttribute("design", 'sidebar');
+ $("content-insert").setAttribute("region", "trailing");
+ $("content-insert").setStyle({
+ width: '50%',
+ height: 'auto'});
+ }
}
function themeAfterLayout() {
- $("headlines-toolbar").setStyle({
- 'border-right-width': '1px',
- 'border-color': '#88b0f0',
- });
+ if ($("content-insert")) {
+ $("headlines-toolbar").setStyle({
+ 'border-right-width': '1px',
+ 'border-color': '#88b0f0',
+ });
+ }
}