Ignore:
Timestamp:
Aug 1, 2012, 7:00:07 PM (12 years ago)
Author:
rvelices
Message:

merge -r17289 from trunk to 2.4: batch manager improvements/fixes:

  • when refreshing photo set, start is set to 0 (otherwise if the new set is smaller that start, it looks like it is empty)
  • correct positioning of thumbnails (width/height) is done in template instead of javascript (immediate instead on ready + no reflows)
  • less space lost on batch manager page
  • fix wrong page title in batch manager because of global variable $title overriden
  • fix language keys in element_set_ranks (capital/lowercase issue)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/admin/batch_manager.php

    r16929 r17290  
    5151{
    5252  // echo '<pre>'; print_r($_POST); echo '</pre>';
    53 
     53  unset($_REQUEST['start']); // new photo set must reset the page
    5454  $_SESSION['bulk_manager_filter'] = array();
    5555
     
    336336// and $page['nb_images'] next elements
    337337
    338 if (!isset($_GET['start'])
    339     or !is_numeric($_GET['start'])
    340     or $_GET['start'] < 0
    341     or (isset($_GET['display']) and 'all' == $_GET['display']))
     338if (!isset($_REQUEST['start'])
     339    or !is_numeric($_REQUEST['start'])
     340    or $_REQUEST['start'] < 0
     341    or (isset($_REQUEST['display']) and 'all' == $_REQUEST['display']))
    342342{
    343343  $page['start'] = 0;
     
    345345else
    346346{
    347   $page['start'] = $_GET['start'];
     347  $page['start'] = $_REQUEST['start'];
    348348}
    349349
Note: See TracChangeset for help on using the changeset viewer.