summaryrefslogtreecommitdiff
path: root/themes/triple-pane/theme.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/triple-pane/theme.js')
-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',
+ });
+ }
}