Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Update to Cal-Heatmap 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 25, 2013
1 parent f7e2d50 commit 51c1fb3
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 2,527 deletions.
19 changes: 8 additions & 11 deletions assets/js/controllers/lastestJobHeatmapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ angular.module("app").controller("lastestJobHeatmapController", [
$scope.predicate = "time";

var cal = new CalHeatMap();
var range = 6;
cal.init({
id : "latest-jobs-heatmap",
itemSelector : "#latest-jobs-heatmap",
scale : [10,20,30,40],
itemName : ["job", "jobs"],
range: 6,
cellsize: 10,
browsing: true,
browsingOptions: {
nextLabel : "<i class=\"icon-chevron-right\"></i>",
previousLabel : "<i class=\"icon-chevron-left\"></i>"
},
range: range,
start: new Date().setHours(new Date().getHours() - (range - 1)),
cellSize: 10,
nextSelector: ".latest-jobs-graph .graph-browse-next",
previousSelector: ".latest-jobs-graph .graph-browse-previous",
data: "api/jobs/stats/{{t:start}}/{{t:end}}",
tooltip: true,
onClick : function(start) {
$scope.loading = true;

Expand All @@ -40,9 +40,6 @@ angular.module("app").controller("lastestJobHeatmapController", [
}).
error(function() {
});
},
onComplete: function() {
$(".latest-jobs-graph a").tooltip({container: "body"});
}
});

Expand Down
Loading

0 comments on commit 51c1fb3

Please sign in to comment.