Ignore:
Timestamp:
May 25, 2011, 11:00:46 AM (13 years ago)
Author:
patdenice
Message:

Load tags for tokeninput directly in html page. Ajax is too slow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r9943 r11039  
    167167  if (isset($_POST['tags']))
    168168  {
    169     $tag_ids = get_fckb_tag_ids($_POST['tags']);
     169    $tag_ids = get_tag_ids($_POST['tags']);
    170170  }
    171171  set_tags($tag_ids, $_GET['image_id']);
     
    234234  WHERE image_id = '.$_GET['image_id'].'
    235235;';
    236 $tags = get_fckb_taglist($query);
     236$tag_selection = get_taglist($query);
     237
     238$query = '
     239SELECT
     240    id AS tag_id,
     241    name AS tag_name
     242  FROM '.TAGS_TABLE.'
     243;';
     244$tags = get_taglist($query);
    237245
    238246// retrieving direct information about picture
     
    268276$template->assign(
    269277  array(
     278    'tag_selection' => $tag_selection,
    270279    'tags' => $tags,
    271280    'U_SYNC' => $admin_url_start.'&sync_metadata=1',
Note: See TracChangeset for help on using the changeset viewer.