Ignore:
Timestamp:
May 24, 2014, 6:24:52 PM (10 years ago)
Author:
mistic100
Message:

feature 3077 : use selectize on batch_manager_global, cat_modify and photos_add_direct
+ rewrite "add album" popup (more flexible and working with selectize)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_global.php

    r28532 r28533  
    475475
    476476// tags
     477$filter_tags = array();
     478
    477479if (!empty($_SESSION['bulk_manager_filter']['tags']))
    478480{
     
    484486  WHERE id IN ('.implode(',', $_SESSION['bulk_manager_filter']['tags']).')
    485487;';
    486   $template->assign('filter_tags', get_taglist($query));
    487 }
    488 
    489 // Virtualy associate a picture to a category
    490 $query = '
    491 SELECT id,name,uppercats,global_rank
    492   FROM '.CATEGORIES_TABLE.'
    493 ;';
    494 $categories = array_from_query($query);
    495 usort($categories, 'global_rank_compare');
    496 display_select_categories($categories, array(), 'category_full_name_options', true);
    497 
    498 $template->assign('category_parent_options', $template->get_template_vars('category_full_name_options'));
    499 $template->assign('category_parent_options_selected', array());
     488
     489  $filter_tags = get_taglist($query);
     490}
     491
     492$template->assign('filter_tags', $filter_tags);
    500493
    501494// in the filter box, which category to select by default
     
    705698  'nb_thumbs_page' => $nb_thumbs_page,
    706699  'nb_thumbs_set' => count($page['cat_elements_id']),
    707   'CACHE_KEYS' => get_admin_client_cache_keys(array('tags'))
     700  'CACHE_KEYS' => get_admin_client_cache_keys(array('tags', 'categories')),
    708701  ));
    709702
Note: See TracChangeset for help on using the changeset viewer.