diff --git a/src/actions/WindowActions.js b/src/actions/WindowActions.js index 78a97fd77..af9f1c8d3 100644 --- a/src/actions/WindowActions.js +++ b/src/actions/WindowActions.js @@ -644,10 +644,19 @@ export function handleProcessResponse(response, type, id, successCallback) { )); break; case 'openDocument': - dispatch(push( - '/window/' + action.windowId + - '/' + action.documentId - )); + if(action.modal) { + dispatch( + openModal( + '', action.windowId, 'window', null, null, + true, '', '', action.documentId + ) + ); + } else { + dispatch(push( + '/window/' + action.windowId + + '/' + action.documentId + )); + } break; case 'openIncludedView': dispatch(setListIncludedView(