Changeset 22706


Ignore:
Timestamp:
05/17/13 00:22:13 (7 years ago)
Author:
plg
Message:

merge r22705 from trunk to branch 2.5

bug 2901 fixed: batch manager, for "set title" and "set author" actions,
|@escape:javascript to avoid problems with single quotes.

File:
1 edited

Legend:

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

    r20823 r22706  
    885885    <label><input type="checkbox" name="remove_author"> {'remove author'|@translate}</label><br> 
    886886    {assign var='authorDefaultValue' value='Type here the author name'|@translate} 
    887 <input type="text" class="large" name="author" value="{$authorDefaultValue}" onfocus="this.value=(this.value=='{$authorDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$authorDefaultValue}' : this.value;"> 
     887<input type="text" class="large" name="author" value="{$authorDefaultValue}" onfocus="this.value=(this.value=='{$authorDefaultValue|@escape:javascript}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$authorDefaultValue|@escape:javascript}' : this.value;"> 
    888888    </div>     
    889889 
     
    892892    <label><input type="checkbox" name="remove_title"> {'remove title'|@translate}</label><br> 
    893893    {assign var='titleDefaultValue' value='Type here the title'|@translate} 
    894 <input type="text" class="large" name="title" value="{$titleDefaultValue}" onfocus="this.value=(this.value=='{$titleDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$titleDefaultValue}' : this.value;"> 
     894<input type="text" class="large" name="title" value="{$titleDefaultValue}" onfocus="this.value=(this.value=='{$titleDefaultValue|@escape:javascript}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$titleDefaultValue|@escape:javascript}' : this.value;"> 
    895895    </div> 
    896896 
Note: See TracChangeset for help on using the changeset viewer.