From 157d93bedec88cb8ccb3907d1353a5e6c7862102 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Tue, 5 Apr 2016 10:01:06 +0000
Subject: [PATCH] SSDM-3449 : Direct link to host

SVN: 36082
---
 .../1/as/webapps/eln-lims/html/js/util/Util.js        | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js
index 642ef3beeb3..8f9dc633f4f 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js
@@ -236,13 +236,20 @@ var Util = new function() {
 				'overflow' : 'hidden'
 		};
 		
-		var $window = $("<div>").append($("<h1>").append("Direct Link"))
+		var $close = $("<div>", { style : "float:right;" })
+							.append($("<a>", { class : 'btn btn-default' }).append($("<span>", { class : 'glyphicon glyphicon-remove' }))).click(function() {
+								Util.unblockUI();
+							});
+		
+		var $window = $("<div>").append($close).append($("<h1>").append("Direct Link"))
 											.append("Please use this link to access the folder though the network: ")
 											.append($("<br>"))
 											.append("Directly clicking on it will open the default application.")
 											.append($("<br>"))
 											.append($("<a>", { "href" : directLink, "target" : "_blank"}).append(directLink));
-		$window.css("margin", "10px");
+		$window.css("margin-bottom", "10px");
+		$window.css("margin-left", "10px");
+		$window.css("margin-right", "10px");
 		
 		Util.blockUI($window, css);
 	}
-- 
GitLab