Interactive interface for browsing global, full-resolution satellite imagery
Added build timestamp to version information
Mike McGannb349f90e0f12
diff --git a/ant/js.build.xml b/ant/js.build.xmlindex cdd907a73..a46e5d837 100644--- a/ant/js.build.xml+++ b/ant/js.build.xml@@ -1,6 +1,6 @@<project name="js" basedir=".">- <filelist id="js.files" dir="${src.web.js.dir}">+ <filelist id="js.files" dir="${build.web.js.dir}"><file name="ext/yui/yahoo-min.js"/><file name="ext/yui/event-min.js"/><file name="ext/jquery/jquery-1.6.4.js"/>diff --git a/build.xml b/build.xmlindex 66a31e16e..dbea51e18 100644--- a/build.xml+++ b/build.xml@@ -15,6 +15,9 @@<include file="${src.ant.dir}/js.build.xml"/><target name="init">+ <tstamp>+ <format property="build.timestamp" pattern="MMMMM d yyyy, h:mm a z"/>+ </tstamp><mkdir dir="${build.dir}"/><mkdir dir="${dist.dir}"/><mkdir dir="${lib.artifacts.dir}"/>@@ -104,6 +107,10 @@</fileset></copy>+ <replace file="${build.web.dir}/js/Worldview.js"+ token="@BUILD_TIMESTAMP@"+ value="${build.timestamp}"/>+<!-- Debug version that is not minified --><delete dir="${build.web-debug.dir}"/><mkdir dir="${build.web-debug.dir}"/>diff --git a/js/Worldview.js b/js/Worldview.jsindex f51857afe..77d324a61 100644--- a/js/Worldview.js+++ b/js/Worldview.js@@ -17,6 +17,13 @@*/ns.VERSION = "0.4.0";+ /**+ * Constant: BUILD_TIMESTAMP+ * Date and time Worldview was built. This value is changed during the+ * build process.+ */+ ns.BUILD_TIMESTAMP = "@BUILD_TIMESTAMP@";+/*** Function: namespace* Defines a namespace under Worldview. Each argument is an object pathdiff --git a/js/Worldview/Widget/Map.js b/js/Worldview/Widget/Map.jsindex bdabd1421..32ee1a543 100644--- a/js/Worldview/Widget/Map.js+++ b/js/Worldview/Widget/Map.js@@ -31,16 +31,15 @@ Worldview.Widget.Map = function(containerId, spec) {};self.setValue = function(value) {- var static = Worldview.Widget.Map;log.debug("setValue: " + extent);- var extent = static.extentFromValue(value);+ var extent = Worldview.Widget.Map.extentFromValue(value);self.productMap.map.zoomToExtent(extent, true);};self.getValue = function() {- var static = Worldview.Widget.Map;var queryString = containerId + "=" +- static.valueFromExtent(self.productMap.map.getExtent());+ Worldview.Widget.Map.valueFromExtent(+ self.productMap.map.getExtent());log.debug("getValue: " + queryString);return queryString;};diff --git a/js/sote.js b/js/sote.jsindex b7701cf2e..55b9be0a7 100644--- a/js/sote.js+++ b/js/sote.js@@ -20,7 +20,7 @@ function showOverlay(){"<h3>Support</h3>"+"<p>Comments/suggestions/problem reports are welcome via <a href='mailto:[email protected]?subject=Feedback%20for%20EOSDIS%20Worldview%20tool'>[email protected]</a>. Please note that Internet Explorer is not currently supported and we are working to determine if and when it can be.</p>"+"<br /><p>"+- "Version: " + Worldview.VERSION + " (<a href='release_notes.txt' target='_blank'>release notes</a>)<br />"++ "Version: " + Worldview.VERSION + " - " + Worldview.BUILD_TIMESTAMP + " (<a href='release_notes.txt' target='_blank'>release notes</a>)<br />"+"Front-End Lead/Architect: <a href='mailto:[email protected]'>Tilak Joshi</a><br />"+"Responsible NASA Official: <a href='mailto:[email protected]'>Ryan Boller</a><br />"+"</p>"+