Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/15 09:27:41 (9 years ago)
Author:
dglaser
Message:

#2394:

HeuristicLab.Services.WebApp.Status-3.3:

  • added apply button to history page
  • removed zoom and pan from history charts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js

    r12435 r12519  
    1414                yaxis: {
    1515                    min: 0,
    16                     max: 100,
    17                     zoomRange: false,
    18                     panRange: false
     16                    max: 100
    1917                },
    2018                xaxis: {
    2119                    mode: "time",
    2220                    twelveHourClock: false
    23                 },
    24                 zoom: {
    25                     interactive: true
    26                 },
    27                 pan: {
    28                     interactive: true
    2921                }
    3022            };
     
    4234                    }
    4335                },
    44                 yaxis: {
    45                     zoomRange: false,
    46                     panRange: false
    47                 },
    4836                xaxis: {
    4937                    mode: "time",
    5038                    twelveHourClock: false
    51                 },
    52                 zoom: {
    53                     interactive: true
    54                 },
    55                 pan: {
    56                     interactive: true
    5739                }
    5840            };
    59 
    6041
    6142            $scope.fromDate = new Date();
     
    8869            $scope.memorySeries = [[]];
    8970
    90             var updateCharts = function () {
     71            $scope.updateCharts = function () {
    9172                dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate) }, function (status) {
    9273                    var noOfStatus = status.length;
     
    11596                });
    11697            };
    117 
    118             $scope.$watch('fromDate', function (newValue, oldValue) {
    119                 updateCharts();
    120             });
    121             $scope.$watch('toDate', function (newValue, oldValue) {
    122                 updateCharts();
    123             });
     98            $scope.updateCharts();
    12499        }]
    125100    );
Note: See TracChangeset for help on using the changeset viewer.