Bug 6444 Corrects encoding problems in subscription-add.pl

When searching for a vendor, if the vendor has accented character in its
name, the vendor's name that's added in the form of subscription-add.pl
is encoded incorrectly.

[2011.06.01] F. Demians. Port it to 3.4

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Frédérick Capovilla 2011-06-02 11:36:54 +01:00 committed by Chris Cormack
parent 939d0ab639
commit ddcf63d29b
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
function GetIt(aqbooksellerid,name)
{
opener.document.f.aqbooksellerid.value = aqbooksellerid;
opener.document.f.aqbooksellername.value = unescape(name);
opener.document.f.aqbooksellername.value = name;
window.close();
}
</script>
@ -33,7 +33,7 @@ function GetIt(aqbooksellerid,name)
<tr>
[% END %]
<td>[% loop_supplier.name %]</td>
<td><a href="#" onclick="GetIt([% loop_supplier.aqbooksellerid %],'[% loop_supplier.name |url %]')">Choose</a></td>
<td><a href="#" onclick="GetIt([% loop_supplier.aqbooksellerid %],$(this).parent().prev().text())">Choose</a></td>
</tr>
[% END %]
</table>