You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2013/11/20 15:33:44 UTC

svn commit: r1543827 - /uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/js/ducc.js

Author: degenaro
Date: Wed Nov 20 14:33:44 2013
New Revision: 1543827

URL: http://svn.apache.org/r1543827
Log:
UIMA-3435 DUCC webserver (WS) should display home=/... when hovering over cluster name

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/js/ducc.js

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/js/ducc.js
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/js/ducc.js?rev=1543827&r1=1543826&r2=1543827&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/js/ducc.js (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/js/ducc.js Wed Nov 20 14:33:44 2013
@@ -103,7 +103,17 @@ function ducc_identity()
 			success : function (data) 
 			{
 				$("#identity").html(data);
-				$(document).attr("title", "ducc-mon: "+data);
+				try {
+                    a1 = data.split(">");
+                    n1 = a1[1];
+                    a2 = n1.split("<");
+                    n2 = a2[0];
+                    name = n2;
+                    $(document).attr("title", "ducc-mon: "+name);
+                }
+                catch(err) {
+                    //ducc_error("ducc_identity",err);
+                }
 			}
 		});
 	}