Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/15 16:29:08 (9 years ago)
Author:
dglaser
Message:

#2388:

HeuristicLab.Services.WebApp.Status-3.3:
HeuristicLab.Services.WebApp.Statistics-3.3:

  • Added 'Last 6 Months' and 'Last Year' to the QuickSelection

HeuristicLab.Services.WebApp.Statistics-3.3:

  • Added Group Name to expired clients
Location:
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/details/clientDetails.cshtml

    r12778 r12780  
    203203        <div class="form-group" style="margin-left: 5px; margin-right: 5px;">
    204204            <div class="btn-group" dropdown dropdown-append-to-body>
    205                 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 130px; text-align: left;">
    206                     <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span>
     205                <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 145px; text-align: left;">
     206                    <span class="text-left" style="display: inline-block; width: 100px;">{{curQuickSelection.name}}</span>
    207207                    <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span>
    208208                </button>
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/details/clientDetailsCtrl.js

    r12778 r12780  
    176176                { id: 2, name: 'Yesterday' },
    177177                { id: 3, name: 'Last 7 Days' },
    178                 { id: 4, name: 'Last 30 Days' }
     178                { id: 4, name: 'Last 30 Days' },
     179                { id: 5, name: 'Last 6 Months' },
     180                { id: 6, name: 'Last Year' }
    179181            ];
    180182            $scope.changeQuickSelection = function (quickSelection) {
     
    196198                    case 4:
    197199                        $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs));
     200                        $scope.toDate = new Date(today.valueOf());
     201                        break;
     202                    case 5:
     203                        var month = today.getMonth() - 6;
     204                        if (month < 0) {
     205                            month += 12;
     206                        }
     207                        $scope.fromDate = new Date(today.valueOf());
     208                        $scope.fromDate.setMonth(month);
     209                        $scope.toDate = new Date(today.valueOf());
     210                        break;
     211                    case 6:
     212                        $scope.fromDate = new Date(today.valueOf());
     213                        $scope.fromDate.setFullYear(today.getFullYear() - 1);
    198214                        $scope.toDate = new Date(today.valueOf());
    199215                        break;
Note: See TracChangeset for help on using the changeset viewer.