Commit 8699dec5 by Torkel Ödegaard

fixed jshint issues

parent 6f0c6281
...@@ -35,4 +35,4 @@ module.exports = function (grunt) { ...@@ -35,4 +35,4 @@ module.exports = function (grunt) {
// pass the config to grunt // pass the config to grunt
grunt.initConfig(config); grunt.initConfig(config);
}; };
\ No newline at end of file
...@@ -6,14 +6,14 @@ define([ ...@@ -6,14 +6,14 @@ define([
'kbn', 'kbn',
'moment' 'moment'
], ],
function (angular, _, $, config, kbn, moment) { function (angular) {
'use strict'; 'use strict';
var module = angular.module('grafana.services'); var module = angular.module('grafana.services');
module.factory('GrafanaDatasource', function($q, $http) { module.factory('GrafanaDatasource', function($q, $http) {
function GrafanaDatasource(datasource) { function GrafanaDatasource() {
this.type = 'grafana'; this.type = 'grafana';
this.grafanaDB = true; this.grafanaDB = true;
} }
...@@ -44,7 +44,7 @@ function (angular, _, $, config, kbn, moment) { ...@@ -44,7 +44,7 @@ function (angular, _, $, config, kbn, moment) {
GrafanaDatasource.prototype.saveDashboard = function(dashboard) { GrafanaDatasource.prototype.saveDashboard = function(dashboard) {
return $http.post('/api/dashboard/', { dashboard: dashboard }) return $http.post('/api/dashboard/', { dashboard: dashboard })
.then(function() { .then(function() {
return { title: dashboard.title, url: '/dashboard/db/' + dashboard.title }; return { title: dashboard.title, url: '/dashboard/db/' + dashboard.title };
}, function(data) { }, function(data) {
throw "Failed to search: " + data; throw "Failed to search: " + data;
}); });
......
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