.
This commit is contained in:
@@ -10,6 +10,11 @@ window.control_pressed = false;
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$("table thead th input").click((e) => {
|
||||
let status = e.currentTarget.checked;
|
||||
$("table tbody input").prop("checked", status);
|
||||
})
|
||||
|
||||
$(".answer-list li").each(function (index, element) {
|
||||
$(element).append($("<span class='google-link' title='search for answer with google'><a href='https://www.google.com/search?q=" + $(element).text() + "' target='_blank'>G</a></span>"));
|
||||
});
|
||||
@@ -61,7 +66,9 @@ $(document).ready(function () {
|
||||
$(".show-unmarked-button").click(() => {
|
||||
$("#question-mark-list li").each((n, el) => {
|
||||
// Can't seem to get django to output this as a int....
|
||||
if (parseInt(el.dataset.markcount) < 1) { $(el).hide(); }
|
||||
if (parseInt(el.dataset.markcount) < 1) {
|
||||
$(el).hide();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
@@ -84,7 +91,9 @@ $(document).ready(function () {
|
||||
innerHTML: obj.name,
|
||||
class: '',
|
||||
|
||||
}).data("exam-id", obj.id).click((evt) => { addToExam(evt) }))
|
||||
}).data("exam-id", obj.id).click((evt) => {
|
||||
addToExam(evt)
|
||||
}))
|
||||
})
|
||||
})
|
||||
.done(function () {
|
||||
@@ -308,8 +317,8 @@ function setUpDicom(element) {
|
||||
|
||||
cornerstoneTools.addToolForElement(element, ArrowAnnotateTool, {
|
||||
configuration: {
|
||||
getTextCallback: () => { },
|
||||
changeTextCallback: () => { },
|
||||
getTextCallback: () => {},
|
||||
changeTextCallback: () => {},
|
||||
allowEmptyLabel: true,
|
||||
renderDashed: false,
|
||||
drawHandles: false,
|
||||
@@ -321,13 +330,23 @@ function setUpDicom(element) {
|
||||
|
||||
// Enable our tools
|
||||
// Avoid incorrect aspect ratio
|
||||
cornerstoneTools.setToolActiveForElement(element, "Pan", { mouseButtonMask: 1 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "Wwwc", { mouseButtonMask: 2 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "ZoomMouseWheel", { mouseButtonMask: 3 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "Zoom", { mouseButtonMask: 4 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "Pan", {
|
||||
mouseButtonMask: 1
|
||||
});
|
||||
cornerstoneTools.setToolActiveForElement(element, "Wwwc", {
|
||||
mouseButtonMask: 2
|
||||
});
|
||||
cornerstoneTools.setToolActiveForElement(element, "ZoomMouseWheel", {
|
||||
mouseButtonMask: 3
|
||||
});
|
||||
cornerstoneTools.setToolActiveForElement(element, "Zoom", {
|
||||
mouseButtonMask: 4
|
||||
});
|
||||
|
||||
if (element.dataset.edit_annotation == "true") {
|
||||
cornerstoneTools.setToolActiveForElement(element, "ArrowAnnotate", { mouseButtonMask: 2 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "ArrowAnnotate", {
|
||||
mouseButtonMask: 2
|
||||
});
|
||||
} else {
|
||||
cornerstoneTools.setToolEnabledForElement(element, "ArrowAnnotate");
|
||||
}
|
||||
@@ -355,8 +374,7 @@ function keyDownHandler(e) {
|
||||
// accepts some kind of input
|
||||
if ($("*:focus:not(disabled)").is("textarea, input")) {
|
||||
// unless a modifier key is pressed (not shift)
|
||||
if (e.altKey ? true : false || e.ctrlKey ? true : false) {
|
||||
} else {
|
||||
if (e.altKey ? true : false || e.ctrlKey ? true : false) {} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -375,8 +393,7 @@ function keyDownHandler(e) {
|
||||
if (e.altKey ? true : false) {
|
||||
dicomViewer.selectThumb(x);
|
||||
e.preventDefault();
|
||||
} else {
|
||||
}
|
||||
} else {}
|
||||
}
|
||||
|
||||
switch (charCode) {
|
||||
@@ -457,7 +474,9 @@ function keyDownHandler(e) {
|
||||
|
||||
function create_popup_window(url, title) {
|
||||
newwindow = window.open(url, title, 'height=800,width=600');
|
||||
if (window.focus) { newwindow.focus() }
|
||||
if (window.focus) {
|
||||
newwindow.focus()
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
{% block js %}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("table thead th input").click((e) => {
|
||||
let status = e.currentTarget.checked; console.log(status, $("table tbody input")); $("table tbody input").prop("checked", status);
|
||||
})
|
||||
//$("thead input:checked").each((n, el) => {
|
||||
|
||||
$("#delete-selected-button").on("click", function () {
|
||||
|
||||
@@ -749,6 +749,7 @@ input {
|
||||
float: right;
|
||||
transform: rotate(90deg) translateX(10px);
|
||||
color: blueviolet;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.clear-both {
|
||||
|
||||
+33
-14
@@ -10,6 +10,11 @@ window.control_pressed = false;
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$("table thead th input").click((e) => {
|
||||
let status = e.currentTarget.checked;
|
||||
$("table tbody input").prop("checked", status);
|
||||
})
|
||||
|
||||
$(".answer-list li").each(function (index, element) {
|
||||
$(element).append($("<span class='google-link' title='search for answer with google'><a href='https://www.google.com/search?q=" + $(element).text() + "' target='_blank'>G</a></span>"));
|
||||
});
|
||||
@@ -61,7 +66,9 @@ $(document).ready(function () {
|
||||
$(".show-unmarked-button").click(() => {
|
||||
$("#question-mark-list li").each((n, el) => {
|
||||
// Can't seem to get django to output this as a int....
|
||||
if (parseInt(el.dataset.markcount) < 1) { $(el).hide(); }
|
||||
if (parseInt(el.dataset.markcount) < 1) {
|
||||
$(el).hide();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
@@ -84,7 +91,9 @@ $(document).ready(function () {
|
||||
innerHTML: obj.name,
|
||||
class: '',
|
||||
|
||||
}).data("exam-id", obj.id).click((evt) => { addToExam(evt) }))
|
||||
}).data("exam-id", obj.id).click((evt) => {
|
||||
addToExam(evt)
|
||||
}))
|
||||
})
|
||||
})
|
||||
.done(function () {
|
||||
@@ -308,8 +317,8 @@ function setUpDicom(element) {
|
||||
|
||||
cornerstoneTools.addToolForElement(element, ArrowAnnotateTool, {
|
||||
configuration: {
|
||||
getTextCallback: () => { },
|
||||
changeTextCallback: () => { },
|
||||
getTextCallback: () => {},
|
||||
changeTextCallback: () => {},
|
||||
allowEmptyLabel: true,
|
||||
renderDashed: false,
|
||||
drawHandles: false,
|
||||
@@ -321,13 +330,23 @@ function setUpDicom(element) {
|
||||
|
||||
// Enable our tools
|
||||
// Avoid incorrect aspect ratio
|
||||
cornerstoneTools.setToolActiveForElement(element, "Pan", { mouseButtonMask: 1 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "Wwwc", { mouseButtonMask: 2 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "ZoomMouseWheel", { mouseButtonMask: 3 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "Zoom", { mouseButtonMask: 4 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "Pan", {
|
||||
mouseButtonMask: 1
|
||||
});
|
||||
cornerstoneTools.setToolActiveForElement(element, "Wwwc", {
|
||||
mouseButtonMask: 2
|
||||
});
|
||||
cornerstoneTools.setToolActiveForElement(element, "ZoomMouseWheel", {
|
||||
mouseButtonMask: 3
|
||||
});
|
||||
cornerstoneTools.setToolActiveForElement(element, "Zoom", {
|
||||
mouseButtonMask: 4
|
||||
});
|
||||
|
||||
if (element.dataset.edit_annotation == "true") {
|
||||
cornerstoneTools.setToolActiveForElement(element, "ArrowAnnotate", { mouseButtonMask: 2 });
|
||||
cornerstoneTools.setToolActiveForElement(element, "ArrowAnnotate", {
|
||||
mouseButtonMask: 2
|
||||
});
|
||||
} else {
|
||||
cornerstoneTools.setToolEnabledForElement(element, "ArrowAnnotate");
|
||||
}
|
||||
@@ -355,8 +374,7 @@ function keyDownHandler(e) {
|
||||
// accepts some kind of input
|
||||
if ($("*:focus:not(disabled)").is("textarea, input")) {
|
||||
// unless a modifier key is pressed (not shift)
|
||||
if (e.altKey ? true : false || e.ctrlKey ? true : false) {
|
||||
} else {
|
||||
if (e.altKey ? true : false || e.ctrlKey ? true : false) {} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -375,8 +393,7 @@ function keyDownHandler(e) {
|
||||
if (e.altKey ? true : false) {
|
||||
dicomViewer.selectThumb(x);
|
||||
e.preventDefault();
|
||||
} else {
|
||||
}
|
||||
} else {}
|
||||
}
|
||||
|
||||
switch (charCode) {
|
||||
@@ -457,7 +474,9 @@ function keyDownHandler(e) {
|
||||
|
||||
function create_popup_window(url, title) {
|
||||
newwindow = window.open(url, title, 'height=800,width=600');
|
||||
if (window.focus) { newwindow.focus() }
|
||||
if (window.focus) {
|
||||
newwindow.focus()
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user