Mercurial > kallithea
diff rhodecode/public/js/rhodecode.js @ 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 | f0e518891d69 |
children | c560a5789512 |
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;