ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843: WIP Preview highlight on input.
Date Tue, 01 Sep 2015 10:12:35 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 b01166575 -> bd3d0c341


IGNITE-843: WIP Preview highlight on input.


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

Branch: refs/heads/ignite-843
Commit: bd3d0c34138492b2e5deb6bf8e0b1684f2770bb0
Parents: b011665
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Tue Sep 1 17:13:03 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Tue Sep 1 17:13:03 2015 +0700

----------------------------------------------------------------------
 .../control-center-web/src/main/js/controllers/common-module.js  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/bd3d0c34/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index 48cf24b..c9c1d23 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -995,7 +995,7 @@ controlCenterModule.service('$table', ['$common', '$focus', function ($common,
$
 }]);
 
 // Preview support service.
-controlCenterModule.service('$preview', [function ($timeout) {
+controlCenterModule.service('$preview', ['$timeout', function ($timeout) {
     var Range = require('ace/range').Range;
 
     var previewPrevContent = [];
@@ -1024,6 +1024,8 @@ controlCenterModule.service('$preview', [function ($timeout) {
                 }
             }
 
+            previewPrevContent = [];
+
             if (start >= 0) {
                 if (end < 0)
                     end = start + 1;


Mime
View raw message