|
@@ -1,8 +1,9 @@
|
|
|
define([
|
|
define([
|
|
|
'angular',
|
|
'angular',
|
|
|
- 'underscore'
|
|
|
|
|
|
|
+ 'underscore',
|
|
|
|
|
+ 'config'
|
|
|
],
|
|
],
|
|
|
-function (angular, _) {
|
|
|
|
|
|
|
+function (angular, _, config) {
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
|
|
var module = angular.module('kibana.controllers');
|
|
var module = angular.module('kibana.controllers');
|
|
@@ -10,7 +11,7 @@ function (angular, _) {
|
|
|
module.controller('PlaylistCtrl', function($scope, playlistSrv) {
|
|
module.controller('PlaylistCtrl', function($scope, playlistSrv) {
|
|
|
|
|
|
|
|
$scope.init = function() {
|
|
$scope.init = function() {
|
|
|
- $scope.timespan = "15s";
|
|
|
|
|
|
|
+ $scope.timespan = config.playlistTimespan;
|
|
|
$scope.loadFavorites();
|
|
$scope.loadFavorites();
|
|
|
$scope.$on('modal-opened', $scope.loadFavorites);
|
|
$scope.$on('modal-opened', $scope.loadFavorites);
|
|
|
};
|
|
};
|
|
@@ -35,4 +36,4 @@ function (angular, _) {
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-});
|
|
|
|
|
|
|
+});
|