projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Separate client and server codes. Keep everything in one git repo for simplicity
[vchess.git]
/
client
/
src
/
utils
/
ajax.js
diff --git
a/public/javascripts/utils/ajax.js
b/client/src/utils/ajax.js
similarity index 95%
rename from
public/javascripts/utils/ajax.js
rename to
client/src/utils/ajax.js
index
dc21705
..
065f382
100644
(file)
--- a/
public/javascripts/utils/ajax.js
+++ b/
client/src/utils/ajax.js
@@
-9,7
+9,7
@@
function toQueryString(data)
}
// data, error: optional
-function ajax(url, method, data, success, error)
+
export
function ajax(url, method, data, success, error)
{
let xhr = new XMLHttpRequest();
if (typeof(data) === "function") //no data