Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Fix feedback button not working 1
Browse files
chat_application/templates/room.html
CHANGED
|
@@ -221,27 +221,6 @@
|
|
| 221 |
document.getElementById("abortNoBtn-pre").onclick = function () {
|
| 222 |
modal.style.display = "none";
|
| 223 |
};
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
document.getElementById("abortYesBtn-SurveyAnyway").onclick = function (e) {
|
| 227 |
-
//block browser confirmation popup
|
| 228 |
-
e.stopPropagation();
|
| 229 |
-
// Mark that user aborted and redirect to ending survey
|
| 230 |
-
fetch("/abort", { method: "POST" })
|
| 231 |
-
.then(() => {
|
| 232 |
-
window.open(endpoint, "_blank");
|
| 233 |
-
});
|
| 234 |
-
modal.style.display = "none";
|
| 235 |
-
textarea.disabled = true;
|
| 236 |
-
textarea.placeholder = "The chat has ended.";
|
| 237 |
-
document.getElementById("send-btn").disabled = true;
|
| 238 |
-
document.getElementById("end-exp-btn").disabled = true;
|
| 239 |
-
document.getElementById("abort-exp-btn").disabled = true;
|
| 240 |
-
if (socketio) {
|
| 241 |
-
socketio.close();
|
| 242 |
-
}
|
| 243 |
-
abortModalConfirm.style.display = "none";
|
| 244 |
-
};
|
| 245 |
document.getElementById("abortNoBtn").onclick = function () {
|
| 246 |
abortModalConfirm.style.display = "none";
|
| 247 |
};
|
|
|
|
| 221 |
document.getElementById("abortNoBtn-pre").onclick = function () {
|
| 222 |
modal.style.display = "none";
|
| 223 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
document.getElementById("abortNoBtn").onclick = function () {
|
| 225 |
abortModalConfirm.style.display = "none";
|
| 226 |
};
|