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) git-svn-id: http://piwigo.org/svn/trunk@17289 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
eae8b9c051
commit
4eb43c1406
7 changed files with 98 additions and 116 deletions
|
|
@ -50,7 +50,7 @@ check_input_parameter('selection', $_POST, true, PATTERN_ID);
|
|||
if (isset($_POST['submitFilter']))
|
||||
{
|
||||
// echo '<pre>'; print_r($_POST); echo '</pre>';
|
||||
|
||||
unset($_REQUEST['start']); // new photo set must reset the page
|
||||
$_SESSION['bulk_manager_filter'] = array();
|
||||
|
||||
if (isset($_POST['filter_prefilter_use']))
|
||||
|
|
@ -335,16 +335,16 @@ $page['cat_elements_id'] = $current_set;
|
|||
// category. For exampe, $page['start'] = 12 means we must show elements #12
|
||||
// and $page['nb_images'] next elements
|
||||
|
||||
if (!isset($_GET['start'])
|
||||
or !is_numeric($_GET['start'])
|
||||
or $_GET['start'] < 0
|
||||
or (isset($_GET['display']) and 'all' == $_GET['display']))
|
||||
if (!isset($_REQUEST['start'])
|
||||
or !is_numeric($_REQUEST['start'])
|
||||
or $_REQUEST['start'] < 0
|
||||
or (isset($_REQUEST['display']) and 'all' == $_REQUEST['display']))
|
||||
{
|
||||
$page['start'] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$page['start'] = $_GET['start'];
|
||||
$page['start'] = $_REQUEST['start'];
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue