diff options
author | plegall <plg@piwigo.org> | 2013-05-16 22:22:13 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-05-16 22:22:13 +0000 |
commit | c3c6b70f1723a2697b2ddf656c44255835133a28 (patch) | |
tree | b84f872468a03171eeeb8715c7ecebe2b86e3ced /admin/themes | |
parent | a4c43109b3633fca367e6b48bdcd32173747b65d (diff) |
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.
git-svn-id: http://piwigo.org/svn/branches/2.5@22706 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes')
-rw-r--r-- | admin/themes/default/template/batch_manager_global.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index bb1311097..8ac629235 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -884,14 +884,14 @@ UL.thumbnails SPAN.wrap2 {ldelim} <div id="action_author" class="bulkAction"> <label><input type="checkbox" name="remove_author"> {'remove author'|@translate}</label><br> {assign var='authorDefaultValue' value='Type here the author name'|@translate} -<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;"> +<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;"> </div> <!-- title --> <div id="action_title" class="bulkAction"> <label><input type="checkbox" name="remove_title"> {'remove title'|@translate}</label><br> {assign var='titleDefaultValue' value='Type here the title'|@translate} -<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;"> +<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;"> </div> <!-- date_creation --> |