function document_update_name(docid, name) { | function document_update_name(docid, name) { | ||||
$.ajax({ | $.ajax({ | ||||
type: "PATCH", | type: "PATCH", | ||||
url: conf.openapi + "/documents/" + docid + "?name=" + name, | |||||
url: conf.openapi + "/documents/" + docid + "?name=" + encodeURIComponent(name), | |||||
data: null, | data: null, | ||||
success: function(data) { | success: function(data) { | ||||