Added var total_discs to codemirror