allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [19/25] allura git commit: [#7955] preserve focus on editor after unindenting
Date Fri, 18 Sep 2015 00:53:14 GMT
[#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 <dbrondsema@slashdotmedia.com>
Authored: Thu Sep 17 19:04:39 2015 +0000
Committer: Heith Seewald <hseewald@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);


Mime
View raw message