Commit 0f40e06d by Torkel Ödegaard

Merge branch 'timespanconfig' of github.com:rmca/grafana into rmca-timespanconfig

parents 86b204ac 31c75886
......@@ -25,6 +25,7 @@ function (_, crypto) {
grafana_index : 'grafana-dash',
elasticsearch_all_disabled : false,
timezoneOffset : null,
playlistTimespan : "15s",
unsaved_changes_warning : true
};
......
define([
'angular',
'underscore'
'underscore',
'config'
],
function (angular, _) {
function (angular, _, config) {
'use strict';
var module = angular.module('kibana.controllers');
......@@ -10,7 +11,7 @@ function (angular, _) {
module.controller('PlaylistCtrl', function($scope, playlistSrv) {
$scope.init = function() {
$scope.timespan = "15s";
$scope.timespan = config.playlistTimespan;
$scope.loadFavorites();
$scope.$on('modal-opened', $scope.loadFavorites);
};
......
......@@ -14,6 +14,7 @@ function (Settings) {
* For Basic authentication use: http://username:password@domain.com:9200
*/
elasticsearch: "http://"+window.location.hostname+":9200",
playlistTimespan: "15s",
/**
* graphite-web url:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment