Ignore:
Timestamp:
Mar 19, 2010, 1:50:19 PM (14 years ago)
Author:
plg
Message:

feature 724: FCBKcomplete propagated to element_set_global and
element_set_unit to manage tags.

Note: multiple instances of FCBKcomplete on the same page does not work as
good as a single instance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/element_set_unit.tpl

    r5123 r5188  
    22{include file='include/autosize.inc.tpl'}
    33{include file='include/datepicker.inc.tpl'}
     4
     5{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"}
     6{literal}
     7<script type="text/javascript">
     8  $(document).ready(function() {
     9    $(".tags").fcbkcomplete({
     10      json_url: "admin.php?fckb_tags=1",
     11      cache: false,
     12      filter_case: true,
     13      filter_hide: true,
     14      firstselected: true,
     15      filter_selected: true,
     16      maxitems: 10,
     17      newel: true
     18    });
     19  });
     20</script>
     21{/literal}
     22
    423
    524<h2>{'Batch management'|@translate}</h2>
     
    7695    <tr>
    7796      <td><strong>{'Tags'|@translate}</strong></td>
    78       <td>{$element.TAG_SELECTION}</td>
     97      <td>
     98
     99<select class="tags" name="tags-{$element.ID}">
     100{foreach from=$element.TAGS item=tag}
     101  <option value="{$tag.value}" class="selected">{$tag.caption}</option>
     102{/foreach}
     103</select>
     104
     105      </td>
    79106    </tr>
    80107
Note: See TracChangeset for help on using the changeset viewer.