var noteCheckbox = document.createElement('checkbox');
noteCheckbox.setAttribute('id','li_note_checkbox');
noteCheckbox.setAttribute('label',$('catStrings').getString('staff.cat.update_items.lineitem_note.default'));
+
+ if (g.data.notes_toggle == true){noteCheckbox.setAttribute('checked', true);}
+
+ noteCheckbox.addEventListener('click',function(ev)
+ {
+ if ($('li_note_checkbox').checked){g.data.notes_toggle = false;}
+ else{g.data.notes_toggle = true;}
+ g.data.stash(g.data.notes_toggle);
+ }
+ );
+
control_bar.appendChild( noteCheckbox );
// Make the textbox for the default note