LT-259 Adding warning for when user attempts to close the Lesion Tracker before saving measurements [INTEGRATING NEW MODULE INTO VIEWER + DOCUMENTATION]

This commit is contained in:
Emanuel F. Oliveira committed 2016-11-17 16:59:42 -02:00
1 parent 849ca2d488
commit d2095f3cb7
7 files changed
+134 -23

No files matched your search

@@ -0,0 +1,12 @@
import { OHIF } from 'meteor/ohif:core';
export const unloadHandlers = {
beforeUnload: function(event) {
// Check for any unsaved changes on viewer namespace...
if (OHIF.ui.unsavedChanges.probe('viewer.*') > 0) {
let confirmationMessage = 'You have unsaved changes!';
event.returnValue = confirmationMessage;
return confirmationMessage;
}
}
};