Ignore:
Timestamp:
May 25, 2011, 3:33:29 PM (10 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/themes/default/template/batch_manager_global.tpl

    r10421 r11056  
    66{/literal}{/footer_script}
    77
    8 {combine_script id='jquery.fcbkcomplete' load='footer' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'}
    9 
    10 {footer_script require='jquery.fcbkcomplete'}{literal}
    11 jQuery(document).ready(function() {
    12   jQuery("#tags").fcbkcomplete({
    13     json_url: "admin.php?fckb_tags=1",
    14     cache: false,
    15     filter_case: false,
    16     filter_hide: true,
    17     firstselected: true,
    18     filter_selected: true,
    19     maxitems: 100,
    20     newel: true
    21   });
     8{combine_script id='jquery.tokeninput' load='footer' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'}
     9
     10{footer_script require='jquery.tokeninput'}
     11jQuery(document).ready(function() {ldelim}
     12  jQuery("#tags").tokenInput(
     13    [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}],
     14    {ldelim}
     15      hintText: '{'Type in a search term'|@translate}',
     16      noResultsText: '{'No results'|@translate}',
     17      searchingText: '{'Searching...'|@translate}',
     18      newText: ' ({'new'|@translate})',
     19      animateDropdown: false,
     20      preventDuplicates: true,
     21      allowCreation: true
     22    }
     23  );
    2224});
    23 {/literal}{/footer_script}
     25{/footer_script}
    2426
    2527{footer_script}
Note: See TracChangeset for help on using the changeset viewer.