net.put => net.request('PUT'; improved usability for "Save" buttons

This commit is contained in:
Matthias S. Benkmann 2014-12-23 16:33:56 +01:00
commit eccc98b83b
4 changed files with 28 additions and 31 deletions

View file

@ -182,7 +182,7 @@ function saveDoc(name, callback) {
else if (parts[0] == "ace")
path = "lib/" + path;
net.put(path, doc.session.getValue(), callback);
net.request('PUT', path, doc.session.getValue(), callback);
}
module.exports = {