##// END OF EJS Templates
rhodecode.js: initialize CodeMirror.fromTextArea with autofocus set
Mads Kiilerich -
r4168:7eb8544c rhodecode-2.2.5-gpl
parent child Browse files
Show More
@@ -964,7 +964,8 var initCodeMirror = function(textarea_i
964 var myCodeMirror = CodeMirror.fromTextArea($('#' + textarea_id)[0], {
964 var myCodeMirror = CodeMirror.fromTextArea($('#' + textarea_id)[0], {
965 mode: "null",
965 mode: "null",
966 lineNumbers: true,
966 lineNumbers: true,
967 indentUnit: 4
967 indentUnit: 4,
968 autofocus: true,
968 });
969 });
969 $('#reset').click(function(e){
970 $('#reset').click(function(e){
970 window.location=resetUrl;
971 window.location=resetUrl;
General Comments 0
You need to be logged in to leave comments. Login now