Skip to content

Commit

Permalink
Fix the dategraph to work with the rebased code
Browse files Browse the repository at this point in the history
  • Loading branch information
tung-jin-chew-hp committed Mar 16, 2017
1 parent fd26b69 commit 439a809
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ define([
var upperCase = fieldName.toUpperCase();

return function(model) {
return model.get('field').toUpperCase() === upperCase && model.get('range') && model.get('dataType') === dataType;
return model.get('field').toUpperCase() === upperCase && model.get('range') && model.get('type') === dataType;
};
}

function dateModelMatching(fieldName, dataType) {
var upperCase = fieldName.toUpperCase();

return function(model) {
return model.id.toUpperCase() === upperCase && model.get('dataType') === dataType;
return model.id.toUpperCase() === upperCase && model.get('type') === dataType;
};
}

Expand Down Expand Up @@ -96,7 +96,7 @@ define([
this.pixelsPerBucket = options.pixelsPerBucket || 20;

this.fieldName = 'autn_date';
this.dataType = 'date';
this.dataType = 'NumericDate';

this.bucketModel = new BucketedParametricCollection.Model({id: this.fieldName});
this.selectedParametricValues = options.queryState.selectedParametricValues;
Expand Down

0 comments on commit 439a809

Please sign in to comment.