Changeset 12780 for branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups
- Timestamp:
- 07/20/15 16:29:08 (9 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details/groupDetails.cshtml
r12778 r12780 232 232 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 233 233 <div class="btn-group" dropdown dropdown-append-to-body> 234 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 1 30px; text-align: left;">235 <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span>234 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 145px; text-align: left;"> 235 <span class="text-left" style="display: inline-block; width: 100px;">{{curQuickSelection.name}}</span> 236 236 <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span> 237 237 </button> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details/groupDetailsCtrl.js
r12778 r12780 109 109 { id: 2, name: 'Yesterday' }, 110 110 { id: 3, name: 'Last 7 Days' }, 111 { id: 4, name: 'Last 30 Days' } 111 { id: 4, name: 'Last 30 Days' }, 112 { id: 5, name: 'Last 6 Months' }, 113 { id: 6, name: 'Last Year' } 112 114 ]; 113 115 $scope.changeQuickSelection = function (quickSelection) { … … 129 131 case 4: 130 132 $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs)); 133 $scope.toDate = new Date(today.valueOf()); 134 break; 135 case 5: 136 var month = today.getMonth() - 6; 137 if (month < 0) { 138 month += 12; 139 } 140 $scope.fromDate = new Date(today.valueOf()); 141 $scope.fromDate.setMonth(month); 142 $scope.toDate = new Date(today.valueOf()); 143 break; 144 case 6: 145 $scope.fromDate = new Date(today.valueOf()); 146 $scope.fromDate.setFullYear(today.getFullYear() - 1); 131 147 $scope.toDate = new Date(today.valueOf()); 132 148 break;
Note: See TracChangeset
for help on using the changeset viewer.