0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-11-16 19:17:56 +01:00

add querystring with version to releasenotes to prevent browser caching

This commit is contained in:
Rick Companje 2017-06-21 12:37:13 +02:00
parent 4b68bb5680
commit bae38b8475

View File

@ -117,14 +117,15 @@
if (data.current_release_date) { if (data.current_release_date) {
html += ' (released: ' + formatDate(data.current_release_date) + ')'; html += ' (released: ' + formatDate(data.current_release_date) + ')';
} }
var localReleasenotes = "http://"+_pageData.localip+"/ReleaseNotes.html";
var localReleasenotes = "http://"+_pageData.localip+"/ReleaseNotes.html?"+data.current_version;
html += ' (<a target="d3d-curr-relnotes" href="'+localReleasenotes+'">release notes</a>).'; html += ' (<a target="d3d-curr-relnotes" href="'+localReleasenotes+'">release notes</a>).';
if(data.can_update) { if(data.can_update) {
html += '<br/>Latest version: ' + data.newest_version; html += '<br/>Latest version: ' + data.newest_version;
if (data.newest_release_date) { if (data.newest_release_date) {
html += ' (released: ' + formatDate(data.newest_release_date) + ')'; html += ' (released: ' + formatDate(data.newest_release_date) + ')';
} }
html += ' (<a target="d3d-new-relnotes" href="http://doodle3d.com/releasenotes/">release notes</a>).'; html += ' (<a target="d3d-new-relnotes" href="http://doodle3d.com/releasenotes/?'+data.newest_version+'">release notes</a>).';
} }
_infoField.html(html); _infoField.html(html);
} }