From 3fb6a915078e79001add3c193a2d218f90a65033 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 8 Mar 2013 15:04:14 +0530 Subject: [PATCH] fix site dialog css --- static/js/pandora/siteDialog.0xdb.js | 6 ++++-- static/js/pandora/siteDialog.js | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/siteDialog.0xdb.js b/static/js/pandora/siteDialog.0xdb.js index 2237e90ce..95575c2c5 100644 --- a/static/js/pandora/siteDialog.0xdb.js +++ b/static/js/pandora/siteDialog.0xdb.js @@ -13,8 +13,10 @@ pandora.ui.siteDialog = function(section) { var $tabPanel = Ox.TabPanel({ content: function(id) { var $content = Ox.Element() - .addClass('OxTextPage') .css({padding: '16px', overflowY: 'auto'}); + if (id != 'contact') { + $content.addClass('OxTextPage'); + } if (id == 'contact') { pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content); } else if (id == 'news') { @@ -70,7 +72,7 @@ pandora.ui.siteDialog = function(section) { .appendTo($content); if (id == 'rights') { $right = $('
') - .css({position: 'absolute', top: '16px', right: '16px', width: '128px'}) + .css({position: 'absolute', top: '16px', right: '16px', width: '128px', lineHeight: 'normal'}) .appendTo($content); $('') .attr({src: '/static/png/rights.png'}) diff --git a/static/js/pandora/siteDialog.js b/static/js/pandora/siteDialog.js index a94019062..64af7a0f4 100644 --- a/static/js/pandora/siteDialog.js +++ b/static/js/pandora/siteDialog.js @@ -13,8 +13,10 @@ pandora.ui.siteDialog = function(section) { var $tabPanel = Ox.TabPanel({ content: function(id) { var $content = Ox.Element() - .addClass('OxTextPage') .css({padding: '16px', overflowY: 'auto'}); + if (id != 'contact') { + $content.addClass('OxTextPage'); + } if (id == 'contact') { pandora.$ui.contactForm = pandora.ui.contactForm().appendTo($content); } else if (id == 'news') {