[Groonga-commit] groonga/groonga-admin at 4233720 [master] table search: support incremental search by time range

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jan 4 18:28:27 JST 2015


Kouhei Sutou	2015-01-04 18:28:27 +0900 (Sun, 04 Jan 2015)

  New Revision: 42337209fdd596d1adc2c2437519eac14f293061
  https://github.com/groonga/groonga-admin/commit/42337209fdd596d1adc2c2437519eac14f293061

  Message:
    table search: support incremental search by time range

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

  Modified: app/scripts/controllers/table-search-controller.js (+4 -0)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2015-01-04 18:24:39 +0900 (2d125c2)
+++ app/scripts/controllers/table-search-controller.js    2015-01-04 18:28:27 +0900 (eafbbc6)
@@ -353,6 +353,10 @@ angular.module('groongaAdminApp')
             var date = timeColumnInfo.unit.percentToDate(value / 100);
             return date.toLocaleString();
           },
+          onRangeChanged: function() {
+            timeColumnInfo.syncFromRange();
+            incrementalSearch();
+          },
           onUnitChanged: function() {
             timeColumnInfo.updateRangeByDateRange(timeColumnInfo.start,
                                                   timeColumnInfo.end);

  Modified: app/views/tables/search.html (+1 -0)
===================================================================
--- app/views/tables/search.html    2015-01-04 18:24:39 +0900 (a648331)
+++ app/views/tables/search.html    2015-01-04 18:28:27 +0900 (2def493)
@@ -111,6 +111,7 @@
         <div class="input-group">
           {{timeColumn.name}}:
           <slider ng-model="timeColumn.range"
+                  ng-change="timeColumn.onRangeChanged()"
                   min="0"
                   step="1"
                   max="100"
-------------- next part --------------
HTML����������������������������...
Download 



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