Skip to content

Commit

Permalink
Merge pull request loklak#295 from djmgit/typo
Browse files Browse the repository at this point in the history
fix loklak#294 - fixed typo in CountryTweetMap app
  • Loading branch information
Hong Phuc Dang authored Aug 8, 2017
2 parents 5bcc979 + 4e7b546 commit b423e7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CountryTweetMap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ <h4 class="modal-title">Country vs No.of tweets containing {{tweet}}</h4>
</button>
</div>
<div class="filters">
<input class="start-date form-control date" ng-model="startDate" ng-init="" placeholder="Start Date">
<input class="end-date form-control date" ng-model="endDate" ng-init="" placeholder="End Date">
<input class="start-date form-control date" ng-model="startDate" ng-init="" placeholder="From">
<input class="end-date form-control date" ng-model="endDate" ng-init="" placeholder="To">
<input class="count form-control" ng-model="count" ng-init="" placeholder="Count">
</div>
<div ng-if="isLoading" class="loader">
Expand Down
4 changes: 2 additions & 2 deletions CountryTweetMap/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ app.controller("app", function ($scope, $http) {
if ((sinceDate !== undefined && endDate !== "") && (endDate !== undefined && endDate !== "")) {
var date1 = new Date(sinceDate);
var date2 = new Date(endDate);
if (endDate < sinceDate) {
$scope.error = "End date should be larger than start date";
if (date2 < date1) {
$scope.error = "To date should be after From date";
$scope.showSnackbar();
return;
}
Expand Down

0 comments on commit b423e7b

Please sign in to comment.