fixes #1690 name is sent properly to API

This commit is contained in:
Matthieu Leproux
2022-07-11 13:00:35 +02:00
parent a70443528c
commit d0e66615f6
+4 -1
View File
@@ -89,7 +89,10 @@ jQuery(document).ready(function () {
jQuery.ajax({
url: "ws.php?format=json&method=pwg.groups.add",
type: "POST",
data: "name=" + name + "&pwg_token=" + pwg_token,
data: {
'name': name,
'pwg_token': pwg_token,
},
success: function (raw_data) {
loadState.reverse();
data = jQuery.parseJSON(raw_data);