[Groonga-commit] groonga/groonga-admin at 9ca06e0 [master] Swap function order

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Tue Nov 4 18:13:22 JST 2014


Kouhei Sutou	2014-11-04 18:13:22 +0900 (Tue, 04 Nov 2014)

  New Revision: 9ca06e0616fc64b1dff7f58c9fffba70e4682710
  https://github.com/groonga/groonga-admin/commit/9ca06e0616fc64b1dff7f58c9fffba70e4682710

  Message:
    Swap function order

  Modified files:
    app/scripts/controllers/table-search-controller.js

  Modified: app/scripts/controllers/table-search-controller.js (+14 -14)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2014-11-04 18:12:38 +0900 (8db80ad)
+++ app/scripts/controllers/table-search-controller.js    2014-11-04 18:13:22 +0900 (699274e)
@@ -69,20 +69,6 @@ angular.module('groongaAdminApp')
       $scope.outputColumns.push({name: name, inUse: inUse});
     }
 
-    function extractTableInfo(table) {
-      if (table.name === $scope.table) {
-        addOutputColumn('_id');
-        if (table.hasKey) {
-          addOutputColumn('_key');
-        }
-      }
-
-      client.execute('column_list', {table: table.name})
-        .success(function(response) {
-          extractColumnsInfo(table, response.columns());
-        });
-    }
-
     function extractColumnsInfo(table, columns) {
       if (table.name === $scope.table) {
         columns.forEach(function(column) {
@@ -112,6 +98,20 @@ angular.module('groongaAdminApp')
       });
     }
 
+    function extractTableInfo(table) {
+      if (table.name === $scope.table) {
+        addOutputColumn('_id');
+        if (table.hasKey) {
+          addOutputColumn('_key');
+        }
+      }
+
+      client.execute('column_list', {table: table.name})
+        .success(function(response) {
+          extractColumnsInfo(table, response.columns());
+        });
+    }
+
     function fillOptions() {
       client.execute('table_list')
         .success(function(response) {
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る