|
|
@ -94,7 +94,14 @@ function openTrackingHistory(code) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
history = JSON.parse(history);
|
|
|
|
history = JSON.parse(history);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (infocontext.code != "" && !history.includes(infocontext.code)) {
|
|
|
|
if (infocontext.code != "") {
|
|
|
|
|
|
|
|
// Search the history list and remove the current code if it's there
|
|
|
|
|
|
|
|
for (var i = 0; i < history.length; i++) {
|
|
|
|
|
|
|
|
if (history[i] == infocontext.code) {
|
|
|
|
|
|
|
|
history.splice(i, 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add the code back to the list so it's at the top
|
|
|
|
history.push(infocontext.code);
|
|
|
|
history.push(infocontext.code);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
while (history.length > 5) {
|
|
|
|
while (history.length > 5) {
|
|
|
|