From 9f07f438e2e2f0e2f75647c204fa19a53dd87477 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sat, 3 Jan 2015 22:29:32 +0000 Subject: [PATCH] Update firmware flasher so it formats the release notes a little. --- tabs/firmware_flasher.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js index beea4ca2..e24d4144 100755 --- a/tabs/firmware_flasher.js +++ b/tabs/firmware_flasher.js @@ -207,6 +207,7 @@ TABS.firmware_flasher.initialize = function (callback) { $('div.git_info .committer').text(data.commit.author.name); $('div.git_info .date').text(date); $('div.git_info .hash').text(data.sha.slice(0, 7)).prop('href', 'https://github.com/cleanflight/cleanflight/commit/' + data.sha); + $('div.git_info .message').text(data.commit.message); $('div.git_info').slideDown(); @@ -217,7 +218,9 @@ TABS.firmware_flasher.initialize = function (callback) { $('div.release_info .name').text(summary.name).prop('href', summary.releaseUrl); $('div.release_info .date').text(summary.date); $('div.release_info .file').text(summary.file).prop('href', summary.url); - $('div.release_info .notes').text(summary.notes); + + var formattedNotes = summary.notes.trim('\r').replace(/\r/g, '
'); + $('div.release_info .notes').html(formattedNotes); $('div.release_info').slideDown();