Changeset 12519
- Timestamp:
- 06/26/15 09:27:41 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml
r12517 r12519 12 12 <div id="history-header"> 13 13 <form class="form-inline"> 14 <div class="form-group" >14 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 15 15 <label for="fromDate">From: </label> 16 16 <div class="input-group"> … … 21 21 </div> 22 22 </div> 23 <div class="form-group" >24 <label for="fromDate"> To: </label>23 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 24 <label for="fromDate">To: </label> 25 25 <div class="input-group"> 26 26 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="toDate" is-open="toIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close" /> … … 29 29 </span> 30 30 </div> 31 </div> 32 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 33 <button type="button" class="btn btn-default" ng-click="updateCharts()"> 34 Apply 35 </button> 31 36 </div> 32 37 </form> -
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js
r12435 r12519 14 14 yaxis: { 15 15 min: 0, 16 max: 100, 17 zoomRange: false, 18 panRange: false 16 max: 100 19 17 }, 20 18 xaxis: { 21 19 mode: "time", 22 20 twelveHourClock: false 23 },24 zoom: {25 interactive: true26 },27 pan: {28 interactive: true29 21 } 30 22 }; … … 42 34 } 43 35 }, 44 yaxis: {45 zoomRange: false,46 panRange: false47 },48 36 xaxis: { 49 37 mode: "time", 50 38 twelveHourClock: false 51 },52 zoom: {53 interactive: true54 },55 pan: {56 interactive: true57 39 } 58 40 }; 59 60 41 61 42 $scope.fromDate = new Date(); … … 88 69 $scope.memorySeries = [[]]; 89 70 90 varupdateCharts = function () {71 $scope.updateCharts = function () { 91 72 dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate) }, function (status) { 92 73 var noOfStatus = status.length; … … 115 96 }); 116 97 }; 117 118 $scope.$watch('fromDate', function (newValue, oldValue) { 119 updateCharts(); 120 }); 121 $scope.$watch('toDate', function (newValue, oldValue) { 122 updateCharts(); 123 }); 98 $scope.updateCharts(); 124 99 }] 125 100 );
Note: See TracChangeset
for help on using the changeset viewer.