diff options
author | plegall <plg@piwigo.org> | 2013-05-16 22:21:17 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-05-16 22:21:17 +0000 |
commit | ff097c3d837acb6ca2d94625487e399c446392e0 (patch) | |
tree | e81f35a81ea7becf76fdb2dfe2a9ee6745529e33 /admin/themes/default/template | |
parent | 6a420225173230ba4d60437e32921376e9a0c287 (diff) |
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/trunk@22705 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template')
-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 --> |