diff --git a/app/views/setup/fenInput.scala.html b/app/views/setup/fenInput.scala.html
index 0157272a93..33ac160615 100644
--- a/app/views/setup/fenInput.scala.html
+++ b/app/views/setup/fenInput.scala.html
@@ -1,6 +1,6 @@
@(field: play.api.data.Field, strict: Boolean)(implicit ctx: Context)
-
+
diff --git a/public/javascripts/big.js b/public/javascripts/big.js
index 0b663f451a..e0fdb95b63 100644
--- a/public/javascripts/big.js
+++ b/public/javascripts/big.js
@@ -1921,15 +1921,19 @@ var storage = {
var validateFen = _.debounce(function() {
$fenInput.removeClass("success failure");
- if ($fenInput.val()) {
+ var fen = $fenInput.val();
+ if (fen) {
$.ajax({
url: $fenInput.parent().data('validate-url'),
data: {
- fen: $fenInput.val()
+ fen: fen
},
success: function(data) {
$fenInput.addClass("success");
$fenPosition.find('.preview').html(data);
+ $fenPosition.find('a.board_editor').each(function() {
+ $(this).attr('href', $(this).attr('href').replace(/editor\/.+$/, "editor/" + fen));
+ });
$('body').trigger('lichess.content_loaded');
$.centerOverboard();
},
diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css
index 24c1cd08ac..d5ff12b37d 100644
--- a/public/stylesheets/common.css
+++ b/public/stylesheets/common.css
@@ -1389,7 +1389,7 @@ div.game_config input#fen.failure {
color: #aa0000;
}
div.game_config .fen_position .mini_board {
- margin: 10px auto;
+ margin: 10px auto 0 auto;
}
div.game_config .time_choice, div.game_config .increment_choice, div.game_config .elo_range_config {
padding-bottom: 1em;
diff --git a/todo b/todo
index 3f7c03afe5..5f508d44e4 100644
--- a/todo
+++ b/todo
@@ -60,7 +60,6 @@ many tv ideas (answer)
http://i.imgur.com/ZSi90k0.jpg
separate games in spectator chat
real board editor save
-edit board from play fen
clickable mistakes list in analysis
FEN/editor castle/enpassant https://github.com/ornicar/lila/issues/42 white/black to play
stupid team forum slug http://ru.lichess.org/forum/team-4epa250h