Navigation Menu

Skip to content

Commit

Permalink
table search: support incremental search by time range
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 4, 2015
1 parent f49919b commit 4233720
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/scripts/controllers/table-search-controller.js
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions app/views/tables/search.html
Expand Up @@ -111,6 +111,7 @@ <h2 class="panel-title">
<div class="input-group">
{{timeColumn.name}}:
<slider ng-model="timeColumn.range"
ng-change="timeColumn.onRangeChanged()"
min="0"
step="1"
max="100"
Expand Down

0 comments on commit 4233720

Please sign in to comment.