mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Playlist.js: fix playlist names containing "'" wrongly encoded
This commit is contained in:
parent
c3a8a453be
commit
cfc50a5005
@ -95,7 +95,7 @@ var EditPlaylistName = {
|
|||||||
input = $('edit_playlist_name');
|
input = $('edit_playlist_name');
|
||||||
var url = '/databases/1/containers/edit?output=xml';
|
var url = '/databases/1/containers/edit?output=xml';
|
||||||
url += '&dmap.itemid=' + EditPlaylistName.playlistId;
|
url += '&dmap.itemid=' + EditPlaylistName.playlistId;
|
||||||
url += '&dmap.itemname=' + input.value.encode();
|
url += '&dmap.itemname=' + encodeURIComponent(input.value);
|
||||||
new Ajax.Request(url ,{method: 'get',onComplete:EditPlaylistName.response});
|
new Ajax.Request(url ,{method: 'get',onComplete:EditPlaylistName.response});
|
||||||
var option = EditPlaylistName._getOptionElement();
|
var option = EditPlaylistName._getOptionElement();
|
||||||
option.text = input.value;
|
option.text = input.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user