[Groonga-commit] groonga/groonga-admin at 32ede90 [master] Simplify variable name

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 27 15:34:45 JST 2014


Kouhei Sutou	2014-10-27 15:34:45 +0900 (Mon, 27 Oct 2014)

  New Revision: 32ede909c28ba23e1e2ebb2dc2cd165f8059edf7
  https://github.com/groonga/groonga-admin/commit/32ede909c28ba23e1e2ebb2dc2cd165f8059edf7

  Message:
    Simplify variable name

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

  Modified: app/scripts/controllers/table-search-controller.js (+1 -1)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2014-10-27 15:33:30 +0900 (82790f7)
+++ app/scripts/controllers/table-search-controller.js    2014-10-27 15:34:45 +0900 (f3bb856)
@@ -29,7 +29,7 @@ angular.module('groongaAdminApp')
     }
 
     $scope.table = $routeParams.table;
-    $scope.recordsShowType = 'table';
+    $scope.style = 'table';
     $scope.columns = [];
     $scope.records = [];
     $scope.commandLine = '';

  Modified: app/views/tables/search.html (+4 -4)
===================================================================
--- app/views/tables/search.html    2014-10-27 15:33:30 +0900 (d4ce477)
+++ app/views/tables/search.html    2014-10-27 15:34:45 +0900 (9675723)
@@ -29,14 +29,14 @@
 
   <ul class="nav nav-tabs" role="tablist">
     <li role="tab" data-toggle="tab" class="active">
-      <a ng-click="recordsShowType = 'table'">Table</a>
+      <a ng-click="style = 'table'">Table</a>
     </li>
     <li role="tab" data-toggle="tab">
-      <a ng-click="recordsShowType = 'list'">List</a>
+      <a ng-click="style = 'list'">List</a>
     </li>
   </ul>
 
-  <div class="table-search-result" ng-show="recordsShowType == 'table'">
+  <div class="table-search-result" ng-show="style == 'table'">
     <table>
       <thead>
         <tr>
@@ -55,7 +55,7 @@
     </table>
   </div>
 
-  <div class="list-search-result" ng-show="recordsShowType == 'list'">
+  <div class="list-search-result" ng-show="style == 'list'">
     <div class="row" ng-repeat="record in records track by $index">
       <div class="col-md12">
         <div class="table-responsive">
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index