Ignore:
Timestamp:
Jun 2, 2011, 5:39:24 PM (10 years ago)
Author:
patdenice
Message:

bug:2321
Tag names must be escaped in tag input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/admin/themes/default/template/batch_manager_global.tpl

    r11056 r11211  
    1111jQuery(document).ready(function() {ldelim}
    1212  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}],
     13    [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}],
    1414    {ldelim}
    1515      hintText: '{'Type in a search term'|@translate}',
Note: See TracChangeset for help on using the changeset viewer.