Changeset 5189 for trunk/admin.php


Ignore:
Timestamp:
Mar 19, 2010, 2:15:02 PM (14 years ago)
Author:
plg
Message:

feature 724: bug fixed on element_set_unit for FCKB, better use
$("#tags-123, #tags-456") than $(".tags") to apply FCKB widget on
the select box.

Use a dedicated function to return the tag list, formatted for FCKB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r5173 r5189  
    4040  $query = '
    4141SELECT
    42     id,
    43     name
     42    id AS tag_id,
     43    name AS tag_name
    4444  FROM '.TAGS_TABLE.'
    4545;';
    46   $result = pwg_query($query);
    47   $taglist = array();
    48   while ($row = pwg_db_fetch_assoc($result))
    49   {
    50     array_push(
    51       $taglist,
    52       array(
    53         'caption' => $row['name'],
    54         'value' => '~~'.$row['id'].'~~',
    55         )
    56       );
    57   }
    58   echo json_encode($taglist);
     46  echo json_encode(get_fckb_taglist($query));
    5947  exit();
    6048}
Note: See TracChangeset for help on using the changeset viewer.