Update broken Butterfly build
This commit is contained in:
parent
4529310237
commit
6440194658
Binary file not shown.
Binary file not shown.
@ -70,7 +70,9 @@ Refine.selectActionArea = function(id) {
|
||||
|
||||
$(function() {
|
||||
var isThereNewRelease = function() {
|
||||
// TODO: This eeds to be modified to do checking based solely on version, not revision
|
||||
var thisRevision = OpenRefineVersion.revision;
|
||||
var thisVersion = OpenRefineVersion.version;
|
||||
|
||||
var revision_pattern = /r([0-9]+)/;
|
||||
|
||||
@ -79,10 +81,15 @@ $(function() {
|
||||
}
|
||||
|
||||
var latestRevision = OpenRefineReleases.releases[0].revision;
|
||||
var latestVersion = OpenRefineReleases.releases[0].version;
|
||||
|
||||
var thisRev = parseInt(revision_pattern.exec(thisRevision)[1],10);
|
||||
var latestRev = parseInt(revision_pattern.exec(OpenRefineReleases.releases[0].revision)[1],10);
|
||||
|
||||
// Parser version into main version and suffix which follows dash
|
||||
// Parse version from dot separated string into array of integers
|
||||
|
||||
// compare left to right, including suffix
|
||||
return latestRev > thisRev;
|
||||
};
|
||||
|
||||
@ -95,6 +102,22 @@ $(function() {
|
||||
|
||||
$("#openrefine-version").text($.i18n._('core-index')["version"]+" " + OpenRefineVersion.full_version);
|
||||
|
||||
// Format of releases.js fetched from server
|
||||
// var releases = {
|
||||
// "homepage" : "http://code.google.com/p/google-refine/wiki/Downloads",
|
||||
// "releases" : [
|
||||
// {
|
||||
// "description": "OpenRefine 2.6",
|
||||
// "version": "2.6-alpha1",
|
||||
// },
|
||||
// {
|
||||
// "description": "Google Refine 2.5",
|
||||
// "version": "2.5",
|
||||
// "revision": "r2407"
|
||||
// },
|
||||
// ]
|
||||
// }
|
||||
|
||||
var script = $('<script></script>')
|
||||
.attr("src", "http://google-refine.googlecode.com/svn/support/releases.js")
|
||||
.attr("type", "text/javascript");
|
||||
|
Loading…
Reference in New Issue
Block a user