You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/07/22 14:31:15 UTC

[19/42] allura git commit: [#7897] ticket:814 Fix focus when there are more than one editor on a page

[#7897] ticket:814 Fix focus when there are more than one editor on a page


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/7935c5a2
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/7935c5a2
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/7935c5a2

Branch: refs/heads/ib/7897
Commit: 7935c5a2f698d9d00017467c13bb516278f55a5e
Parents: 9e38e6d
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Jul 7 17:54:50 2015 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Wed Jul 22 10:59:52 2015 +0300

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/js/sf_markitup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/7935c5a2/Allura/allura/lib/widgets/resources/js/sf_markitup.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/sf_markitup.js b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
index 4c0cd20..f3466bc 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -61,7 +61,7 @@ $(window).load(function() {
             editor.render();
 
             // focus editor by clicking anywhere on it, not only on the first few lines
-            $('.CodeMirror').click(function () { cm.focus(); });
+            $('.CodeMirror').click(function () { this.CodeMirror.focus(); });
 
             function show_help(editor) {
               $help_contents.html('Loading...');