[dss-commits] digitalSTROM web-sources branch, master, updated. b041b0846416945dbecb3dec6819304f721ec6df

git version control dss-commits at forum.digitalstrom.org
Wed Jan 13 10:19:28 CET 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "digitalSTROM web-sources".

The branch, master has been updated
       via  b041b0846416945dbecb3dec6819304f721ec6df (commit)
      from  cf7f68d2d7d589926b333eab8e34203ed7e88c75 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b041b0846416945dbecb3dec6819304f721ec6df
Author: Matias E. Fernandez <“mfernandez at futurelab.ch”>
Date:   Tue Jan 12 12:14:39 2010 +0100

    System version info in setup interface
    
    The setup interface now displays the system version as provided by the dss.

-----------------------------------------------------------------------

Changes:
diff --git a/dss-setup-interface/dss-setup-interface.js b/dss-setup-interface/dss-setup-interface.js
index 258c801..fd21158 100644
--- a/dss-setup-interface/dss-setup-interface.js
+++ b/dss-setup-interface/dss-setup-interface.js
@@ -13,8 +13,8 @@ Ext.onReady(function(){
 				autoEl: {
 					tag: 'div',
 					html:'<a href="http://digitalstrom.org/" alt="visit digitalSTROM.org"><img id="logo" src="js/lib/extjs/resources/images/content_img/ds_logo01.gif" alt="dS-Logo"></a>' +
-								'<h1><a href="http://digitalstrom.org/" alt="visit digitalSTROM.org">digitalSTROM Setup</a></h1>' + 
-								'<p>Release 0.6 - November 2009</p>'
+								'<h1><a href="http://digitalstrom.org/" alt="visit digitalSTROM.org">digitalSTROM Setup</a></h1>' +
+								'<p id="dssVersion">-</p>'
 				}
 			}, {
 				region: 'center',
@@ -34,4 +34,21 @@ Ext.onReady(function(){
 				]
 			}]
 	});
+
+	Ext.Ajax.request({
+		url            : "/json/system/version",
+		disableCaching : true,
+		success        : function(response, options) {
+			try{
+				var data = Ext.decode(response.responseText);
+				if(data.ok === false) {
+					throw new Ext.Error('Could not get dSS version!', data.error);
+				}
+				Ext.get("dssVersion").update(data.message);
+
+			} catch(error) {
+			}
+		},
+		failure        : function(response, options) {}
+	});
 });


hooks/post-receive
-- 
digitalSTROM web-sources


More information about the dss-commits mailing list