Commit b016743a authored by marc duez's avatar marc duez

stop firefox autocomplete behaviour on cdr3 checkbox

parent 71992dc6
Pipeline #168587 passed with stages
in 13 minutes and 43 seconds
......@@ -276,6 +276,7 @@ Segment.prototype = {
input.type = 'checkbox';
input.id = 'vdj_input_check';
input.setAttribute("title", 'Display CDR3 computed by Vidjil');
input.autocomplete = 'off';
input.checked = (self.m.localStorage && localStorage.getItem('segmenter_cdr3')=="checked")
input.addEventListener('change', function(evt){
self.highlightCDR3(event.target.checked, true)
......@@ -414,8 +415,10 @@ Segment.prototype = {
for (var c_id = 0; c_id < self.m.clones.length; c_id++)
self.build_skeleton(c_id);
this.highlightCDR3(self.m.localStorage && localStorage.getItem('segmenter_cdr3'), false)
if (self.highlightCDR3)
this.highlightCDR3(self.highlightCDR3.checked, false)
} catch(err) {
sendErrorToDb(err, this.db);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment