Navigation Menu

Skip to content

Commit

Permalink
table search: don't use passive form
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 4, 2015
1 parent 4233720 commit dfe7ca4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/scripts/controllers/table-search-controller.js
Expand Up @@ -353,11 +353,11 @@ angular.module('groongaAdminApp')
var date = timeColumnInfo.unit.percentToDate(value / 100);
return date.toLocaleString();
},
onRangeChanged: function() {
onRangeChange: function() {
timeColumnInfo.syncFromRange();
incrementalSearch();
},
onUnitChanged: function() {
onUnitChange: function() {
timeColumnInfo.updateRangeByDateRange(timeColumnInfo.start,
timeColumnInfo.end);
}
Expand Down
4 changes: 2 additions & 2 deletions app/views/tables/search.html
Expand Up @@ -111,7 +111,7 @@ <h2 class="panel-title">
<div class="input-group">
{{timeColumn.name}}:
<slider ng-model="timeColumn.range"
ng-change="timeColumn.onRangeChanged()"
ng-change="timeColumn.onRangeChange()"
min="0"
step="1"
max="100"
Expand All @@ -121,7 +121,7 @@ <h2 class="panel-title">
tooltipsplit="true"></slider>
<select ng-options="unit.label for unit in orderedTimeColumnUnits"
ng-model="timeColumn.unit"
ng-change="timeColumn.onUnitChanged()"></select>
ng-change="timeColumn.onUnitChange()"></select>
</div>
</div>
</form>
Expand Down

0 comments on commit dfe7ca4

Please sign in to comment.