assets/javascripts/issue_templates.js
Function insertAtCursor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function insertAtCursor(areaId, text) {
var txtarea = document.getElementById(areaId);
var scrollPos = txtarea.scrollTop;
var strPos = 0;
var br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ?