From: Andrew Dolgov Date: Mon, 27 Dec 2010 09:40:46 +0000 (+0300) Subject: triple-pane: do not try to rework UI using javascript while in CDM X-Git-Tag: 1.5.1~29 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f52df691c3c8797a6a97914167c6b4873a273a28;p=tt-rss.git triple-pane: do not try to rework UI using javascript while in CDM --- diff --git a/themes/triple-pane/theme.js b/themes/triple-pane/theme.js index 08805530..2fddab03 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', + }); + } }