diff --git a/docs/sources/guides/gettingstarted.md b/docs/sources/guides/gettingstarted.md
index a2939b3724a..4bb250ef55c 100644
--- a/docs/sources/guides/gettingstarted.md
+++ b/docs/sources/guides/gettingstarted.md
@@ -48,7 +48,6 @@ in the main Time Picker in the upper right, but they can also have relative time
2. To edit the graph you click on the graph title to open the panel menu, then `Edit`.
3. This should take you to the `Metrics` tab. In this tab you should see the editor for your default data source.
-
## Drag-and-Drop panels
You can Drag-and-Drop Panels within and between Rows. Click and hold the Panel title, and drag it to its new location.
diff --git a/public/app/plugins/datasource/influxdb/funcEditor.js b/public/app/plugins/datasource/influxdb/funcEditor.js
index 12731c0859d..05bcae6835b 100644
--- a/public/app/plugins/datasource/influxdb/funcEditor.js
+++ b/public/app/plugins/datasource/influxdb/funcEditor.js
@@ -11,30 +11,26 @@ function (angular, _, $) {
.directive('influxdbFuncEditor', function($compile) {
var funcSpanTemplate = '{{target.function}}(';
+ 'data-toggle="dropdown">{{field.func}}(';
var paramTemplate = '';
return {
restrict: 'A',
+ scope: {
+ field: "=",
+ },
link: function postLink($scope, elem) {
var $funcLink = $(funcSpanTemplate);
- $scope.functionMenu = _.map($scope.functions, function(func) {
- return {
- text: func,
- click: "changeFunction('" + func + "');"
- };
- });
-
function clickFuncParam() {
/*jshint validthis:true */
var $link = $(this);
var $input = $link.next();
- $input.val($scope.target.column);
+ $input.val($scope.field.name);
$input.css('width', ($link.width() + 16) + 'px');
$link.hide();
@@ -58,7 +54,7 @@ function (angular, _, $) {
if ($input.val() !== '') {
$link.text($input.val());
- $scope.target.column = $input.val();
+ $scope.field.name = $input.val();
$scope.$apply($scope.get_data);
}
@@ -84,7 +80,7 @@ function (angular, _, $) {
$input.typeahead({
source: function () {
- return $scope.listColumns.apply(null, arguments);
+ return $scope.getFields.apply(null, arguments);
},
minLength: 0,
items: 20,
diff --git a/public/app/plugins/datasource/influxdb/partials/query.editor.html b/public/app/plugins/datasource/influxdb/partials/query.editor.html
index 89571c06022..81e0b07cbd9 100644
--- a/public/app/plugins/datasource/influxdb/partials/query.editor.html
+++ b/public/app/plugins/datasource/influxdb/partials/query.editor.html
@@ -65,10 +65,9 @@