Commit 012ffcf6 by Torkel Ödegaard

Bug in when using % sign in legends (aliases), fixed by removing url decoding of…

Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
parent bef61cf0
...@@ -6,6 +6,7 @@ vNext ...@@ -6,6 +6,7 @@ vNext
**Fixes** **Fixes**
- Fixes regex InfluxDB queries intoduced in 1.6.0 (PR #500) - Fixes regex InfluxDB queries intoduced in 1.6.0 (PR #500)
- Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
# 1.6.0 (2014-06-16) # 1.6.0 (2014-06-16)
......
...@@ -114,10 +114,4 @@ define(['angular', 'jquery', 'underscore', 'moment'], function (angular, $, _, m ...@@ -114,10 +114,4 @@ define(['angular', 'jquery', 'underscore', 'moment'], function (angular, $, _, m
}; };
}); });
module.filter('urlDecode', function() {
return function(input) {
return decodeURIComponent(input);
};
});
}); });
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li ng-repeat="option in filter.options"> <li ng-repeat="option in filter.options">
<a ng-click="filterOptionSelected(filter, option)">{{option.text | urlDecode}}</a> <a ng-click="filterOptionSelected(filter, option)">{{option.text}}</a>
</li> </li>
</ul> </ul>
</li> </li>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</i> </i>
<span class='small histogram-legend-item'> <span class='small histogram-legend-item'>
<a ng-click="toggleSeries(series, $event)" data-unique="1" data-placement="{{series.yaxis === 2 ? 'bottomRight' : 'bottomLeft'}}"> <a ng-click="toggleSeries(series, $event)" data-unique="1" data-placement="{{series.yaxis === 2 ? 'bottomRight' : 'bottomLeft'}}">
{{series.alias | urlDecode}} {{series.alias}}
</a> </a>
<span ng-if="panel.legend.values"> <span ng-if="panel.legend.values">
<span ng-show="panel.legend.current"> <span ng-show="panel.legend.current">
......
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