summaryrefslogtreecommitdiff
path: root/sidebar.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-09-19 14:14:36 +0000
committerfisharebest <fisharebest@gmail.com>2010-09-19 14:14:36 +0000
commit6cb7c32ca2e2925421cd0b548592098b75791d46 (patch)
tree87a7ae4c01dda00a12c38ade82d36e837295ff01 /sidebar.php
parentf716812badf2c91b09fd6d6a3d5c3307223b44f8 (diff)
downloadwebtrees-6cb7c32ca2e2925421cd0b548592098b75791d46.tar.gz
webtrees-6cb7c32ca2e2925421cd0b548592098b75791d46.tar.bz2
webtrees-6cb7c32ca2e2925421cd0b548592098b75791d46.zip
Tidy whitespace/indentation
Diffstat (limited to 'sidebar.php')
-rw-r--r--sidebar.php35
1 files changed, 17 insertions, 18 deletions
diff --git a/sidebar.php b/sidebar.php
index 0ba86496dd..4402250937 100644
--- a/sidebar.php
+++ b/sidebar.php
@@ -174,19 +174,19 @@ jQuery(document).ready(function() {
// Sidebar Pin Function
jQuery('#sidebar_pin').toggle(
- function() {
- jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-in'];?>').attr('title', '<?php echo i18n::translate('Unpin Sidebar');?>');
- jQuery.get('individual.php?pid=<?php echo $controller->pid;?>&action=ajax&pin=true');
- pinned = true;
- },
- function() {
- jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-out'];?>').attr('title', '<?php echo i18n::translate('Pin Sidebar');?>');
- jQuery.get('individual.php?pid=<?php echo $controller->pid;?>&action=ajax&pin=false');
- pinned = false;
- }
- );
+ function() {
+ jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-in'];?>').attr('title', '<?php echo i18n::translate('Unpin Sidebar');?>');
+ jQuery.get('individual.php?pid=<?php echo $controller->pid;?>&action=ajax&pin=true');
+ pinned = true;
+ },
+ function() {
+ jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-out'];?>').attr('title', '<?php echo i18n::translate('Pin Sidebar');?>');
+ jQuery.get('individual.php?pid=<?php echo $controller->pid;?>&action=ajax&pin=false');
+ pinned = false;
+ }
+ );
<?php if (isset($_SESSION['WT_pin']) && $_SESSION['WT_pin']) { ?>
- jQuery('#sidebar_pin').click();
+ jQuery('#sidebar_pin').click();
<?php } ?>
// ---------------------
@@ -210,10 +210,10 @@ jQuery(document).ready(function() {
jQuery('#sidebarAccordion').show();
jQuery('#sidebar_pin').show();
// Shift content
- var newwidth = 310;
- newwidth = jQuery('#tabs').width() - newwidth;
- // NOTE: REM next line to avoid the "page shift" when Navigator is opened. (Purely a preference choice)
- jQuery('#tabs > div').css('width', newwidth+'px');
+ var newwidth = 310;
+ newwidth = jQuery('#tabs').width() - newwidth;
+ // NOTE: REM next line to avoid the "page shift" when Navigator is opened. (Purely a preference choice)
+ jQuery('#tabs > div').css('width', newwidth+'px');
//
<?php if ($sidebar_state == "open" ) { ?>
jQuery('#sidebar_pin').click();
@@ -253,7 +253,7 @@ jQuery(document).ready(function() {
<?php if ( $sidebar_state == "open" ) { ?>
<?php if ( isset($_SESSION['WT_pin']) && $_SESSION['WT_pin'] || !isset($_SESSION['WT_sb_closed']) ) { ?>
- jQuery('#sidebar_open').click();
+ jQuery('#sidebar_open').click();
jQuery('#sidebar_controls').show();
if ( pinned == false ) {
jQuery('#sidebar_pin').click();
@@ -297,4 +297,3 @@ jQuery(document).ready(function() {
</div>
<div id="debug">
</div>
-