From 2fbfcc1333b534783f4fd0e056760f038339f3b1 Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Mon, 22 Jun 2015 13:12:13 -0700 Subject: [PATCH] [Windowing] Added new window button Currently overwrites metadata similar to the FullScreenAction in order to temporarily display the new window button until the css is modified to do so. WTD-16 --- .../commonUI/browse/src/windowing/NewWindowAction.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/platform/commonUI/browse/src/windowing/NewWindowAction.js b/platform/commonUI/browse/src/windowing/NewWindowAction.js index 8b7c0751b5..bc222934b9 100644 --- a/platform/commonUI/browse/src/windowing/NewWindowAction.js +++ b/platform/commonUI/browse/src/windowing/NewWindowAction.js @@ -43,6 +43,17 @@ define( */ perform: function () { $window.alert("Not yet functional. This will open objects in a new window."); + }, + + getMetadata: function () { + // We override getMetadata, this is temporary + // Until the css/html code views the button on + // its own + var metadata = Object.create(NewWindowAction); + metadata.glyph = "y"; + metadata.description = "ENTER DESC HERE"; + metadata.group = "windowing"; + return metadata; } }; }