You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2015/10/01 11:57:14 UTC
ignite git commit: ignite-843 Sql editor change font for same height
under all platforms
Repository: ignite
Updated Branches:
refs/heads/ignite-843 45f5db633 -> dd9c3e3f3
ignite-843 Sql editor change font for same height under all platforms
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/dd9c3e3f
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/dd9c3e3f
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/dd9c3e3f
Branch: refs/heads/ignite-843
Commit: dd9c3e3f3d83a9a7a9274d533204fff91083fe64
Parents: 45f5db6
Author: Andrey <an...@gridgain.com>
Authored: Thu Oct 1 16:57:03 2015 +0700
Committer: Andrey <an...@gridgain.com>
Committed: Thu Oct 1 16:57:03 2015 +0700
----------------------------------------------------------------------
.../src/main/js/controllers/sql-controller.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/dd9c3e3f/modules/control-center-web/src/main/js/controllers/sql-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/sql-controller.js b/modules/control-center-web/src/main/js/controllers/sql-controller.js
index 1bb79f2..8654d07 100644
--- a/modules/control-center-web/src/main/js/controllers/sql-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/sql-controller.js
@@ -143,6 +143,7 @@ consoleModule.controller('sqlController',
renderer.setHighlightGutterLine(false);
renderer.setShowPrintMargin(false);
+ renderer.setOption('fontFamily', 'monospace');
renderer.setOption('fontSize', '14px');
renderer.setOption('minLines', '5');
renderer.setOption('maxLines', '15');
@@ -503,9 +504,11 @@ consoleModule.controller('sqlController',
_cancelRefresh(paragraph);
+ paragraph.queryArgs = { cacheName: paragraph.cacheName };
+
_showLoading(paragraph, true);
- $http.post('/agent/query', {query: 'EXPLAIN ' + paragraph.query, pageSize: paragraph.pageSize, cacheName: paragraph.cacheName})
+ $http.post('/agent/query', paragraph.queryArgs)
.success(_processQueryResult(paragraph))
.error(function (errMsg) {
paragraph.errMsg = errMsg;
@@ -521,9 +524,11 @@ consoleModule.controller('sqlController',
_cancelRefresh(paragraph);
+ paragraph.queryArgs = { cacheName: paragraph.cacheName };
+
_showLoading(paragraph, true);
- $http.post('/agent/scan', {pageSize: paragraph.pageSize, cacheName: paragraph.cacheName})
+ $http.post('/agent/scan', paragraph.queryArgs)
.success(_processQueryResult(paragraph))
.error(function (errMsg) {
paragraph.errMsg = errMsg;