changeset 4168:7eb8544cefbe rhodecode-2.2.5-gpl

rhodecode.js: initialize CodeMirror.fromTextArea with autofocus set
author Mads Kiilerich <madski@unity3d.com>
date Wed, 02 Jul 2014 19:03:28 -0400
parents 1cb909e6fc6d
children c560a5789512
files rhodecode/public/js/rhodecode.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/public/js/rhodecode.js	Wed Jul 02 19:03:27 2014 -0400
+++ b/rhodecode/public/js/rhodecode.js	Wed Jul 02 19:03:28 2014 -0400
@@ -964,7 +964,8 @@
     var myCodeMirror = CodeMirror.fromTextArea($('#' + textarea_id)[0], {
             mode: "null",
             lineNumbers: true,
-            indentUnit: 4
+            indentUnit: 4,
+            autofocus: true,
         });
     $('#reset').click(function(e){
             window.location=resetUrl;