diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-03-17 19:27:48 -0400 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-03-17 19:27:48 -0400 |
| commit | 65d67baa79c7d1c22db23b4ea722403d5067176b (patch) | |
| tree | 2bccce4ca89dce2329d791486b3173d79c4390ff /src/client/views/collections/CollectionDockingView.tsx | |
| parent | 94baa241afd3a99b233ae6197b7e404951347413 (diff) | |
| parent | 641656b5e803305971006c386db2f465da0373ac (diff) | |
changes
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 94005a4c0..ba9e8c29f 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -212,6 +212,12 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp stack.remove(); //} })); + stack.header.controlsContainer.find('.lm_popout') //get the close icon + .off('click') //unbind the current click handler + .click(action(function () { + var url = "http://localhost:1050/doc/" + stack.contentItems[0].tab.contentItem.config.props.documentId; + let win = window.open(url, stack.contentItems[0].tab.title, "width=300,height=400"); + })); } render() { |
