Skip to content

Commit 07e04e8

Browse files
authored
Merge pull request #12 from kaplanPRO/development
version 0.5.5
2 parents 0fb6b37 + 64a3233 commit 07e04e8

File tree

5 files changed

+310
-184
lines changed

5 files changed

+310
-184
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kaplan-desktop",
33
"productName": "Kaplan Desktop",
4-
"version": "0.5.4",
4+
"version": "0.5.5",
55
"description": "An open-source CAT tool.",
66
"homepage": "https://kaplan.pro",
77
"main": "src/main.js",

app/src/editor.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ function submitSegment(target_cell, segment_state) {
353353
if (this.readyState == 4 && this.status == 200) {
354354
console.log("Segment #" + segment_no + " submitted succesfully!");
355355
target_cell.parentNode.className = segment_state;
356+
} else if (this.readyState == 4 && this.status != 200) {
357+
console.error("Segment #" + segment_no + " not submitted succesfully!");
358+
target_cell.parentNode.className = 'error';
356359
}
357360
}
358361

@@ -486,7 +489,7 @@ function targetKeydownHandler(e, target_cell) {
486489
jumpToNextConfirmedSegment = !e.shiftKey;
487490
targetList = [...document.getElementsByClassName("target")].slice(1);
488491
currentId = targetList.findIndex(function(element){return element==target_cell})
489-
for (i = currentId; i < targetList.length; i++) {
492+
for (i = currentId+1; i < targetList.length; i++) {
490493
target = targetList[i];
491494
if (!target.parentNode.classList.contains("translated") && jumpToNextConfirmedSegment) {
492495
target.focus();

app/src/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ ph, g, x {
299299
tr.draft th {
300300
background-color: tan;
301301
}
302+
tr.error th {
303+
background-color: red;
304+
}
302305
tr.translated th {
303306
background-color: teal;
304307
}

0 commit comments

Comments
 (0)