Ignore:
Timestamp:
May 25, 2011, 3:33:29 PM (13 years ago)
Author:
mistic100
Message:

bug:2278 fixed (merge r10970 r11008 r11039 from trunk) replace FCBKcomplete by TokenInput to avoid 3rd tag issue on autocomplete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/admin/include/functions.php

    r10111 r11056  
    21012101}
    21022102
    2103 function get_fckb_taglist($query)
     2103function get_taglist($query)
    21042104{
    21052105  $result = pwg_query($query);
     2106 
    21062107  $taglist = array();
    21072108  while ($row = pwg_db_fetch_assoc($result))
     
    21102111      $taglist,
    21112112      array(
    2112         'key' => $row['tag_name'],
    2113         'value' => '~~'.$row['tag_id'].'~~',
     2113        'name' => $row['tag_name'],
     2114        'id' => '~~'.$row['tag_id'].'~~',
    21142115        )
    21152116      );
    21162117  }
    2117 
     2118 
     2119  $cmp = create_function('$a,$b', 'return strcasecmp($a["name"], $b["name"]);');
     2120  usort($taglist, $cmp);
     2121 
    21182122  return $taglist;
    21192123}
    21202124
    2121 function get_fckb_tag_ids($raw_tags)
     2125function get_tag_ids($raw_tags)
    21222126{
    21232127  // In $raw_tags we receive something like array('~~6~~', '~~59~~', 'New
     
    21272131
    21282132  $tag_ids = array();
     2133  $raw_tags = explode(',',$raw_tags);
    21292134
    21302135  foreach ($raw_tags as $raw_tag)
Note: See TracChangeset for help on using the changeset viewer.