These are the changes I made.
Lines 44, 76, and 202, for me. Nothing removed, just those three lines added.
--- Current Version
+++ New Version
@@ -40,9 +40,8 @@
wkof.Menu.insert_script_link({name:'doublecheck',submenu:'Settings',title:'Double-Check',on_click:open_settings});
var defaults = {
allow_retyping: true,
+ disallow_retyping_burns: false,
allow_change_correct: false,
allow_change_incorrect: false,
typo_action: 'ignore',
delay_wrong: true,
@@ -72,9 +71,8 @@
content: {
tabAnswers: {type:'page',label:'Answers',content:{
grpChangeAnswers: {type:'group',label:'Change Answer',content:{
allow_retyping: {type:'checkbox',label:'Allow retyping answer',default:true,hover_tip:'When enabled, you can retype your answer by pressing Escape or Backspace.'},
+ disallow_retyping_burns: {type:'checkbox',label:'Disallow retyping burns',default:false,hover_tip:'When enabled, you can not retype your answer by pressing Escape or Backspace.'},
allow_change_correct: {type:'checkbox',label:'Allow changing to "correct"',default:true,hover_tip:'When enabled, you can change your answer\nto "correct" by pressing the "+" key.'},
allow_change_incorrect: {type:'checkbox',label:'Allow changing to "incorrect"',default:true,hover_tip:'When enabled, you can change your answer\nto "incorrect" by pressing the "-" key.'},
}},
grpTypos: {type:'group',label:'Typos',content:{
@@ -198,9 +196,8 @@
set_answer_state(new_answer, false /* show_msgs */);
break;
case 'retype':
if (!settings.allow_retyping) return false;
+ if (settings.disallow_retyping_burns && $.jStorage.get('currentItem').srs == 8) alert('You can\'t retype burn reviews');
set_answer_state({reset:true}, false /* show_msgs */);
break;
}
}