Skip to content
Browse files

fixed bug with copying branch values from results tree (to clipboard)

  • Loading branch information...
1 parent 94ee136 commit 7abbdcb06720592db2c712b1d5281b899d34787c tomek committed Oct 11, 2012
View
3 src/main/frontend/source/class/helenos/Application.js
@@ -8,6 +8,7 @@ Authors:
************************************************************************ */
/* ************************************************************************
#asset(helenos/*)
+#asset(favicon.ico)
#asset(ZeroClipboard*.*)
************************************************************************ */
@@ -37,6 +38,8 @@ qx.Class.define("helenos.Application",
// set default locale
qx.locale.Manager.getInstance().setLocale("en");
+ ZeroClipboard.setMoviePath("resource/ZeroClipboard10.swf");
+
// apply some required mixin to TreeVirtual to enable context menu
qx.Class.include(qx.ui.treevirtual.TreeVirtual, qx.ui.table.MTableContextMenu);
View
6 src/main/frontend/source/class/helenos/ui/treevirtual/ResultsTree.js
@@ -9,7 +9,7 @@ Authors:
qx.Class.define("helenos.ui.treevirtual.ResultsTree",
{
extend : qx.ui.treevirtual.TreeVirtual,
-
+
construct : function(data)
{
this.base(arguments, ["Name", "Value", "Clock", "TTL"]);
@@ -21,7 +21,6 @@ qx.Class.define("helenos.ui.treevirtual.ResultsTree",
this.setData(data);
- ZeroClipboard.setMoviePath("resource/ZeroClipboard10.swf");
this.setContextMenuHandler(0, this._contextMenuHandler);
this.setContextMenuHandler(1, this._contextMenuHandler);
this.setContextMenuHandler(2, this._contextMenuHandler);
@@ -39,6 +38,9 @@ qx.Class.define("helenos.ui.treevirtual.ResultsTree",
},this);
if (!table.getSelectionModel().isSelectionEmpty()) {
var text = dataModel.getValue(col, row);
+ if (qx.lang.Type.isObject(text)) {
+ text = text.label
+ }
clip.setText(text);
}
View
3 src/main/frontend/source/index.html
@@ -3,10 +3,9 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Helenos</title>
- <link rel="icon" type="image/ico" href="/helenos/resource/favicon.ico"/>
+ <link rel="icon" type="image/ico" href="resource/favicon.ico"/>
<script type="text/javascript" src="resource/ZeroClipboard.js"></script>
<script type="text/javascript" src="script/helenos.js"></script>
-
</head>
<body></body>
</html>
View
10 src/main/webapp/gui/index.html
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Helenos</title>
- <link rel="icon" type="image/ico" href="/helenos/resource/favicon.ico"/>
- <script type="text/javascript" src="script/helenos.js"></script>
-</head>
-<body></body>
-</html>

0 comments on commit 7abbdcb

Please sign in to comment.
Something went wrong with that request. Please try again.