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
/
rules.js
diff --git
a/public/javascripts/components/rules.js
b/public/javascripts/components/rules.js
index
1a59787
..
02d3a0c
100644
(file)
--- a/
public/javascripts/components/rules.js
+++ b/
public/javascripts/components/rules.js
@@
-10,7
+10,7
@@
Vue.component('my-rules', {
`,
mounted: function() {
// AJAX request to get rules content (plain text, HTML)
`,
mounted: function() {
// AJAX request to get rules content (plain text, HTML)
- ajax("/rules/" + variant, "GET", response => {
+ ajax("/rules/" + variant
.name
, "GET", response => {
let replaceByDiag = (match, p1, p2) => {
const args = this.parseFen(p2);
return getDiagram(args);
let replaceByDiag = (match, p1, p2) => {
const args = this.parseFen(p2);
return getDiagram(args);