Add "Report An Issue" action in developer documentation toc

This commit is contained in:
Saivann 2014-05-19 10:51:05 -04:00
parent 1a123bbb4a
commit 753424d2e6
6 changed files with 83 additions and 4 deletions

View file

@ -361,6 +361,12 @@ addEvent(window,'load',evtimestamp);
init();
}
function issueReport(e){
//Open an issue on GitHub pre-filled with current page location
cancelEvent(e);
window.location.href='https://github.com/bitcoin/bitcoin.org/issues/new?body='+encodeURIComponent('Location: '+window.location.href.toString()+"\n\n")
}
function makeEditable(e){
//An easter egg that makes the page editable when user click on the page and hold their mouse button for one second.
//This trick allows translators and writers to preview their work.