diff --git a/public/app/directives/variableValueSelect.js b/public/app/directives/variableValueSelect.js index f51c706bfe5..1b25544bb50 100644 --- a/public/app/directives/variableValueSelect.js +++ b/public/app/directives/variableValueSelect.js @@ -200,6 +200,14 @@ function (angular, app, _) { } }; + scope.clearSelections = function() { + _.each(scope.options, function(option) { + option.selected = false; + }); + + scope.selectionsChanged(scope.options[0], false); + }; + scope.selectTag = function(tag) { tag.selected = !tag.selected; if (!tag.values) { @@ -231,7 +239,6 @@ function (angular, app, _) { }); linkEl.click(scope.openDropdown); - //inputEl.blur(scope.switchToLink); }, }; }); diff --git a/public/app/features/dashboard/partials/variableValueSelect.html b/public/app/features/dashboard/partials/variableValueSelect.html index a910d647059..e0a4cf2f3c2 100644 --- a/public/app/features/dashboard/partials/variableValueSelect.html +++ b/public/app/features/dashboard/partials/variableValueSelect.html @@ -17,16 +17,19 @@