You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/09/18 02:53:14 UTC
[19/25] allura git commit: [#7955] preserve focus on editor after
unindenting
[#7955] preserve focus on editor after unindenting
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/117b78ca
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/117b78ca
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/117b78ca
Branch: refs/heads/db/7957
Commit: 117b78ca5a534aa4fed7112867da89f46dd37677
Parents: 25542eb
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Sep 17 19:04:39 2015 +0000
Committer: Heith Seewald <hs...@hsmb.local>
Committed: Thu Sep 17 15:22:38 2015 -0400
----------------------------------------------------------------------
Allura/allura/lib/widgets/resources/js/sf_markitup.js | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/117b78ca/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 3a1be79..68e5501 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -292,6 +292,7 @@ $(window).load(function() {
for (var i = block_start; i <= block_end; i++) {
cm.indentLine(i, 'subtract'); // TODO: this doesn't get tracked in the history, so can't be undone :(
}
+ cm.focus();
} else {
// insert code formatting
var no_sel_and_starting_of_line = (cur_start.line === cur_end.line && cur_start.ch === cur_end.ch && cur_start.ch === 0);