refresh codemirror when tab is shown to close #509
simplify codemirror refresh event name
replace e.target.hash w/ $(e.target).attr('href')
Merge pull request #523 from keyvanfatehi/509_refresh-codemirror-on-tab-shown

refresh codemirror when tab is shown to close #509