Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: src/site/js/editor-version.js

Issue 10832333: display current build on editor download button (Closed) Base URL: https://code.google.com/p/dartlang-site/@master
Patch Set: move rev outside of button Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/site/downloads.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 $(document).ready(function() {
2 var displayIntegrationVersion = function() {
3 fetchEditorVersion('integration');
4 };
5
6 var updatePlaceholders = function(channel, version) {
7 $('.editor-build-rev-' + channel).each(function(index, elem) {
8 elem.innerHTML = version;
9 });
10 };
11
12 var fetchEditorVersion = function(buildType) {
13 $.ajax({
14 type: "GET",
15 url: 'http://dart-editor-archive-' + buildType + '.commondatastorage.googl eapis.com/latest/VERSION',
16 dataType: "json",
17 success: function(data) {
18 updatePlaceholders(buildType, data['revision']);
19 },
20 error: function(xhr, textStatus, errorThrown) {
21 console.log(textStatus);
22 }
23 })
24 };
25
26 displayIntegrationVersion();
27 });
OLDNEW
« no previous file with comments | « src/site/downloads.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698