diff options
| author | Lester Caine <lester@lsces.co.uk> | 2009-03-30 15:02:44 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2009-03-30 15:02:44 +0000 |
| commit | e480dc15a5f637ff50f62928361db9450e39835f (patch) | |
| tree | b3945e0cd9ad1ed6997af7ae886a83fb3c46d786 /edit.php | |
| parent | f902ca35de984cf4013226976a3efb82f77848ba (diff) | |
| download | fisheye-e480dc15a5f637ff50f62928361db9450e39835f.tar.gz fisheye-e480dc15a5f637ff50f62928361db9450e39835f.tar.bz2 fisheye-e480dc15a5f637ff50f62928361db9450e39835f.zip | |
Fix setting of number of entries for simple_list and ajax_scroller
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.34 2009/03/30 13:23:01 lsces Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.35 2009/03/30 15:02:44 lsces Exp $ * @package fisheye * @subpackage functions */ @@ -42,6 +42,12 @@ if( !empty( $_REQUEST['savegallery'] ) ) { if( $_REQUEST['gallery_pagination'] == 'auto_flow' ) { $_REQUEST['rows_per_page'] = $_REQUEST['total_per_page']; $_REQUEST['cols_per_page'] = '1'; + } elseif ( $_REQUEST['gallery_pagination'] == 'simple_list' ) { + $_REQUEST['rows_per_page'] = $_REQUEST['lines_per_page']; + $_REQUEST['cols_per_page'] = '1'; + } elseif ( $_REQUEST['gallery_pagination'] == 'ajax_scroller' ) { + $_REQUEST['rows_per_page'] = $_REQUEST['images_per_page']; + $_REQUEST['cols_per_page'] = '1'; } if( $gContent->store( $_REQUEST ) ) { |
