# HG changeset patch # User Ethan Zonca # Date 2010-10-22 20:45:18 # Node ID 8d06f349e7ff0f534958e1f5d7b8e7993a58b72c # Parent aeac5bc1b8bc223553d34ed65bc485b9389aa6f2 Fixed and refined print functionality diff --git a/class.schedule.php b/class.schedule.php --- a/class.schedule.php +++ b/class.schedule.php @@ -219,22 +219,14 @@ class Schedule echo 'jQuery(\'.section\').hide();'; $items = explode(',', $_REQUEST['print']); foreach($items as $item){ - echo 'jQuery(\'#section'.$item.'\').show();'; + echo 'jQuery(\'#tabs-'.$item.'\').show();'; } } - - echo 'jQuery(\'#selectItemsInput\').hide(); - jQuery(\'#selectItems\').click( function() { - jQuery(\'#selectItemsInput\').show(); - }); - jQuery(\'#cancelItems\').click( function() { - jQuery(\'#selectItemsInput\').hide(); - });'; echo '}); '; /* Close document.ready for jquery */ echo 'window.print(); '; - echo '

Select Schedules to Print :: Return to normal view :: Home

'; - echo '


'; + echo '

Return to normal view

'; + } else { echo ''; /* Close document.ready for jquery */ echo '

You can share your schedule with the URL below:

http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'].'

'; - echo '

Print :: Share :: Home

Having problems? Let us know.

Keyboard Shortcut: Left and right arrow keys switch between schedules

'; + echo '

Print :: Share :: Home

Having problems? Let us know.

Keyboard Shortcut: Left and right arrow keys switch between schedules

'; } if($this->nPermutations > 0) diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -407,4 +407,5 @@ class page ' . ($this->xhtml ? ']]>' : '') . ' // '; } + }