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/14 17:03:20 UTC
[39/50] [abbrv] 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/0bb7f769
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0bb7f769
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0bb7f769
Branch: refs/heads/ib/7897
Commit: 0bb7f769373a90894484a621e037a69252ee275a
Parents: 47f490a
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Jul 7 17:54:50 2015 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Tue Jul 14 11:46:02 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/0bb7f769/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...');