LT-354: Repositioning confirmation dialog considering the cursor position
This commit is contained in:
1 parent
6e2bef5317
commit
c3999083a8
3 files changed
+14
-11
No files matched your search
+1
-1
@@ -12,7 +12,7 @@
|
||||
|
||||
{{#let classes=getRemoveAssociationClasses}}
|
||||
<li class="{{classes}}">
|
||||
<a id="removeTimepointAssociations" type="button" class="{{classes}}"
|
||||
<a id="removeTimepointAssociations" type="button" class="{{classes}}"
|
||||
title="Remove Timepoint Association">Remove Association</a>
|
||||
</li>
|
||||
{{/let}}
|
||||
|
||||
+6
-2
@@ -72,11 +72,15 @@ StudyList.functions.viewStudies = viewStudies;
|
||||
/**
|
||||
* Removes all present study / timepoint associations from the Clinical Trial
|
||||
*/
|
||||
function removeTimepointAssociations() {
|
||||
function removeTimepointAssociations($study, event) {
|
||||
const dialogSettings = {
|
||||
title: 'Remove Association',
|
||||
message: 'Measurements related to this Study and Timepoint will be erased. Do you really want to delete this association?',
|
||||
confirmClass: 'btn-danger'
|
||||
confirmClass: 'btn-danger',
|
||||
position: {
|
||||
x: event.clientX,
|
||||
y: event.clientY
|
||||
}
|
||||
};
|
||||
|
||||
OHIF.ui.showFormDialog('dialogConfirm', dialogSettings).then(() => {
|
||||
|
||||
Reference in new issue
Block a user