From c93309f02319732f15cca29ad954ba1a4b0243ff Mon Sep 17 00:00:00 2001 From: Wayne Date: Tue, 1 Dec 2015 17:29:11 -0500 Subject: [PATCH 1/3] added web client plugins installer launch link support. --- default.htm | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/default.htm b/default.htm index 975c389..81253e3 100755 --- a/default.htm +++ b/default.htm @@ -145,19 +145,13 @@ - + - - - - @@ -175,6 +169,16 @@ var initBrowserViewPortDim = document.viewport.getDimensions(); var rightSideWidth = initBrowserViewPortDim.width * rightSideProportion; // this component will take up 75% of the screen +// following added to support webclient plugin manager / installer only +var i2b2Admin = ""; +function invokeWCPinstaller() { + if ('Y' == i2b2Admin) { + window.open("../Webclient/plugin_installer/admin.php?imdan=" + i2b2Admin); // assuming that /admin & /webclient are sibling folders + } else { + window.open("plugin_installer/admin.php?imdan=" + i2b2Admin); // already in /webclient + } +} + function initI2B2() { //debugOnScreen("default.htm.initI2B2: browserViewPort = " + initBrowserViewPortDim.width + " " + initBrowserViewPortDim.height ); @@ -219,6 +223,7 @@ if (i2b2.PM.model.admin_only) { + i2b2Admin = "Y"; // added to support webclient plugin manager / installer only i2b2.hive.MasterView.setViewMode('Admin'); $('viewMode-Patients').style.display = 'none'; $('viewMode-Analysis').style.display = 'none'; @@ -228,6 +233,7 @@ } else { + i2b2Admin = "N"; // added to support webclient plugin manager / installer only // create the splitter object only after login and not in admin-only mode i2b2.hive.mySplitter = new Splitter(splitterName, {cont: 'screenQueryData'}); i2b2.hive.MasterView.initViewMode(); //tdw9 @@ -368,7 +374,20 @@  |  --> - Analysis Tools  |  Help  |  Change Password  |  Logout + Analysis Tools  |  + + + + Webclient Plugin Gallery  |  + + + + Help  |  + Change Password  |  + Logout + + - + + Message Log  |  Help  |  Change Password  |  Logout + +