ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: ignite-843 Sql next fix
Date Thu, 01 Oct 2015 09:27:49 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 e975fa678 -> 45f5db633


ignite-843 Sql next fix


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

Branch: refs/heads/ignite-843
Commit: 45f5db633067384624e0c357de285560a1a4f21c
Parents: e975fa6
Author: Andrey <anovikov@gridgain.com>
Authored: Thu Oct 1 16:27:42 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Thu Oct 1 16:27:42 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/sql-controller.js       | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/45f5db63/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 3457ebb..1bb79f2 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
@@ -534,23 +534,23 @@ consoleModule.controller('sqlController',
         paragraph.ace.focus();
     };
 
-    $scope.nextPage = function(item) {
-        _showLoading(true);
+    $scope.nextPage = function(paragraph) {
+        _showLoading(paragraph, true);
 
-        $http.post('/agent/query/fetch', {queryId: item.queryId, pageSize: item.pageSize,
cacheName: item.queryArgs.cacheName})
+        $http.post('/agent/query/fetch', {queryId: paragraph.queryId, pageSize: paragraph.pageSize,
cacheName: paragraph.queryArgs.cacheName})
             .success(function (res) {
-                item.page++;
+                paragraph.page++;
 
-                item.total += item.rows.length;
+                paragraph.total += paragraph.rows.length;
 
-                item.rows = res.rows;
+                paragraph.rows = res.rows;
 
-                item.gridOptions.api.setRowData(res.rows);
+                paragraph.gridOptions.api.setRowData(res.rows);
 
                 _showLoading(paragraph, false);
 
                 if (res.last)
-                    delete item.queryId;
+                    delete paragraph.queryId;
             })
             .error(function (errMsg) {
                 paragraph.errMsg = errMsg;


Mime
View raw message