Commit 255901ca by Torkel Ödegaard

fix(graph panel): fixed bug in typeahead when adding series style override, fixes #3554

parent aca9d396
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
### New Features ### New Features
* **Elasticsearch**: Support for derivative unit option, closes [#3512](https://github.com/grafana/grafana/issues/3512) * **Elasticsearch**: Support for derivative unit option, closes [#3512](https://github.com/grafana/grafana/issues/3512)
### Bug fixes
* **Graph Panel**: Fixed typehead when adding series style override, closes [#3554](https://github.com/grafana/grafana/issues/3554)
# 2.6.0 (2015-12-14) # 2.6.0 (2015-12-14)
### New Features ### New Features
......
...@@ -74,11 +74,10 @@ function (_, $, coreModule) { ...@@ -74,11 +74,10 @@ function (_, $, coreModule) {
updater: function (value) { updater: function (value) {
var result = {}; var result = {};
_.each($scope.menuItems, function(menuItem) { _.each($scope.menuItems, function(menuItem) {
result.$item = menuItem;
_.each(menuItem.submenu, function(submenuItem) { _.each(menuItem.submenu, function(submenuItem) {
if (value === (menuItem.text + ' ' + submenuItem.text)) { if (value === (menuItem.text + ' ' + submenuItem.text)) {
result.$subItem = submenuItem; result.$subItem = submenuItem;
result.$item = menuItem;
} }
}); });
}); });
......
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