projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save current state (unmerged, broken, not working...)
[vchess.git]
/
public
/
javascripts
/
components
/
problems.js
diff --git
a/public/javascripts/components/problems.js
b/public/javascripts/components/problems.js
index
ad8c54c
..
00cb944
100644
(file)
--- a/
public/javascripts/components/problems.js
+++ b/
public/javascripts/components/problems.js
@@
-175,7
+175,7
@@
Vue.component('my-problems', {
last_dt = this.problems[i].added;
}
}
last_dt = this.problems[i].added;
}
}
- ajax("/problems/" + variant
, "GET", {
+ ajax("/problems/" + variant
.name, "GET", { //TODO: use variant._id ?
direction: direction,
last_dt: last_dt,
}, response => {
direction: direction,
last_dt: last_dt,
}, response => {
@@
-201,7
+201,7
@@
Vue.component('my-problems', {
},
sendNewProblem: function() {
// Send it to the server and close modal
},
sendNewProblem: function() {
// Send it to the server and close modal
- ajax("/problems/" + variant
, "POST", {
+ ajax("/problems/" + variant
.name, "POST", { //TODO: with variant._id ?
fen: this.newProblem.fen,
instructions: this.newProblem.instructions,
solution: this.newProblem.solution,
fen: this.newProblem.fen,
instructions: this.newProblem.instructions,
solution: this.newProblem.solution,