Repository: ignite Updated Branches: refs/heads/ignite-843 60c64aac1 -> aad6eb215
ignite-843 Remove table blinking on refresh. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/aad6eb21 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/aad6eb21 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/aad6eb21 Branch: refs/heads/ignite-843 Commit: aad6eb215b0633a88c9a36347407c27f4216ee02 Parents: 60c64aa Author: Andrey <[email protected]> Authored: Thu Oct 1 18:02:20 2015 +0700 Committer: Andrey <[email protected]> Committed: Thu Oct 1 18:02:20 2015 +0700 ---------------------------------------------------------------------- .../src/main/js/controllers/sql-controller.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/aad6eb21/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 1c87bbf..e9b1c20 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 @@ -400,7 +400,7 @@ consoleModule.controller('sqlController', return retainedCols; } - var _processQueryResult = function (paragraph) { + var _processQueryResult = function (paragraph, columnsToFit) { return function (res) { paragraph.meta = []; paragraph.chartColumns = []; @@ -442,9 +442,10 @@ consoleModule.controller('sqlController', _showLoading(paragraph, false); - setTimeout(function () { - paragraph.gridOptions.api.sizeColumnsToFit(); - }); + if (columnsToFit) + setTimeout(function () { + paragraph.gridOptions.api.sizeColumnsToFit(); + }); if (paragraph.result == 'none') paragraph.result = 'table'; @@ -487,7 +488,7 @@ consoleModule.controller('sqlController', $http.post('/agent/query', paragraph.queryArgs) .success(function (res) { - _processQueryResult(paragraph)(res); + _processQueryResult(paragraph, true)(res); _tryStartRefresh(paragraph); }) @@ -512,7 +513,7 @@ consoleModule.controller('sqlController', _showLoading(paragraph, true); $http.post('/agent/query', paragraph.queryArgs) - .success(_processQueryResult(paragraph)) + .success(_processQueryResult(paragraph, true)) .error(function (errMsg) { paragraph.errMsg = errMsg; @@ -532,7 +533,7 @@ consoleModule.controller('sqlController', _showLoading(paragraph, true); $http.post('/agent/scan', paragraph.queryArgs) - .success(_processQueryResult(paragraph)) + .success(_processQueryResult(paragraph, true)) .error(function (errMsg) { paragraph.errMsg = errMsg;
