Changeset 11211


Ignore:
Timestamp:
06/02/11 17:39:24 (8 years ago)
Author:
patdenice
Message:

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

Location:
branches/2.2/admin/themes/default/template
Files:
3 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}', 
  • branches/2.2/admin/themes/default/template/batch_manager_unit.tpl

    r11056 r11211  
    1717jQuery(document).ready(function() {ldelim} 
    1818  jQuery(tag_boxes_selector).tokenInput( 
    19     [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], 
     19    [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], 
    2020    {ldelim} 
    2121      hintText: '{'Type in a search term'|@translate}', 
  • branches/2.2/admin/themes/default/template/picture_modify.tpl

    r11056 r11211  
    77jQuery(document).ready(function() {ldelim} 
    88  jQuery("#tags").tokenInput( 
    9     [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], 
     9    [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], 
    1010    {ldelim} 
    1111      hintText: '{'Type in a search term'|@translate}', 
Note: See TracChangeset for help on using the changeset viewer.