mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed jshint issues
This commit is contained in:
@@ -35,4 +35,4 @@ module.exports = function (grunt) {
|
||||
// pass the config to grunt
|
||||
grunt.initConfig(config);
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,14 +6,14 @@ define([
|
||||
'kbn',
|
||||
'moment'
|
||||
],
|
||||
function (angular, _, $, config, kbn, moment) {
|
||||
function (angular) {
|
||||
'use strict';
|
||||
|
||||
var module = angular.module('grafana.services');
|
||||
|
||||
module.factory('GrafanaDatasource', function($q, $http) {
|
||||
|
||||
function GrafanaDatasource(datasource) {
|
||||
function GrafanaDatasource() {
|
||||
this.type = 'grafana';
|
||||
this.grafanaDB = true;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ function (angular, _, $, config, kbn, moment) {
|
||||
GrafanaDatasource.prototype.saveDashboard = function(dashboard) {
|
||||
return $http.post('/api/dashboard/', { dashboard: dashboard })
|
||||
.then(function() {
|
||||
return { title: dashboard.title, url: '/dashboard/db/' + dashboard.title };
|
||||
return { title: dashboard.title, url: '/dashboard/db/' + dashboard.title };
|
||||
}, function(data) {
|
||||
throw "Failed to search: " + data;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user