{"action":"closed","issue":{"url":"https://api.github.com/repos/oakmac/chessboardjs/issues/70","labels_url":"https://api.github.com/repos/oakmac/chessboardjs/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/oakmac/chessboardjs/issues/70/comments","events_url":"https://api.github.com/repos/oakmac/chessboardjs/issues/70/events","html_url":"https://github.com/oakmac/chessboardjs/issues/70","id":33341466,"number":70,"title":"Pawn promotion: user interaction?","user":{"login":"bik0z","id":986640,"avatar_url":"https://avatars.githubusercontent.com/u/986640?v=3","gravatar_id":"","url":"https://api.github.com/users/bik0z","html_url":"https://github.com/bik0z","followers_url":"https://api.github.com/users/bik0z/followers","following_url":"https://api.github.com/users/bik0z/following{/other_user}","gists_url":"https://api.github.com/users/bik0z/gists{/gist_id}","starred_url":"https://api.github.com/users/bik0z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bik0z/subscriptions","organizations_url":"https://api.github.com/users/bik0z/orgs","repos_url":"https://api.github.com/users/bik0z/repos","events_url":"https://api.github.com/users/bik0z/events{/privacy}","received_events_url":"https://api.github.com/users/bik0z/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-05-12T20:02:28Z","updated_at":"2015-11-26T19:30:27Z","closed_at":"2015-11-26T19:30:27Z","body":"In the code samples, the pawn promotion piece is hard-coded (i.e. a pawn always promotes to a queen) for example simplicity.\r\n\r\nBut what are we supposed to do if we want to add some form of interaction?\r\n\r\nSo far, I have not been able to find a clean way of displaying a dialog and choosing the pawn promotion piece « on the fly », like in Fritz and other desktop applications...\r\n\r\nI think it would be very convenient to have this managed by chessboard.js itself: what do you think?"}}