templates: fix javascript escaping

This commit is contained in:
Milan
2022-01-27 21:51:50 +01:00
parent f90f71c529
commit b707cbe449
27 changed files with 105 additions and 102 deletions

View File

@@ -14,7 +14,7 @@
<tr>
<td class="label"><TMPL_VAR .loc.label_project> & <TMPL_VAR .loc.label_Studio></td>
<td>
<select id="selectProjectStudio" onchange="updateEventSelection('<TMPL_VAR resultElemId>');return false;">
<select id="selectProjectStudio" onchange="updateEventSelection('<TMPL_VAR resultElemId escape=js>');return false;">
<option value="-1_-1"><TMPL_VAR .loc.label_all></option>
<TMPL_LOOP studios><option value="<TMPL_VAR project_id>_<TMPL_VAR id>" <TMPL_IF selected>selected="selected"</TMPL_IF> ><TMPL_VAR project_name> - <TMPL_VAR name></option>
</TMPL_LOOP>
@@ -29,7 +29,7 @@
<tr>
<td class="label"><TMPL_VAR .loc.label_series></td>
<td>
<select id="selectSeries" onchange="updateEventSelection('<TMPL_VAR resultElemId>');return false;">
<select id="selectSeries" onchange="updateEventSelection('<TMPL_VAR resultElemId escape=js>');return false;">
<option value="-1"><TMPL_VAR .loc.label_select></option>
<TMPL_LOOP series><option value="<TMPL_VAR series_id>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR series_name><TMPL_IF title> - <TMPL_VAR title></TMPL_IF></option>
</TMPL_LOOP>
@@ -43,7 +43,7 @@
<tr>
<td class="label"><TMPL_VAR .loc.label_filter></td>
<td>
<select id="year" onchange="updateEventSelection('<TMPL_VAR resultElemId>');return false;">
<select id="year" onchange="updateEventSelection('<TMPL_VAR resultElemId escape=js>');return false;">
<option value="-1"><TMPL_VAR .loc.label_year></option>
<TMPL_LOOP years><option value="<TMPL_VAR year>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR year></option>
</TMPL_LOOP>
@@ -57,7 +57,7 @@
<tr>
<td class="label"><TMPL_VAR .loc.label_event></td>
<td>
<select id="eventId" onchange=selectEventAction('<TMPL_VAR resultElemId>')>
<select id="eventId" onchange=selectEventAction('<TMPL_VAR resultElemId escape=js>')>
<option value="-1"><TMPL_VAR .loc.label_select></option>
<TMPL_LOOP events><option value="<TMPL_VAR id>" <TMPL_IF selected>selected="selected"</TMPL_IF>><TMPL_VAR start> - <TMPL_VAR full_title></option>
</TMPL_LOOPS>