Changeset 22705


Ignore:
Timestamp:
May 17, 2013, 12:21:17 AM (8 years ago)
Author:
plg
Message:

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
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r20823 r22705  
    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.