Commit ed57a409 by Torkel Ödegaard

Merge branch 'master' into valuepanel

parents 31a4d920 79c5d48a
...@@ -101,7 +101,6 @@ ...@@ -101,7 +101,6 @@
"legend_counts": true, "legend_counts": true,
"timezone": "browser", "timezone": "browser",
"percentage": false, "percentage": false,
"zerofill": true,
"nullPointMode": "connected", "nullPointMode": "connected",
"steppedLine": false, "steppedLine": false,
"tooltip": { "tooltip": {
......
...@@ -68,6 +68,17 @@ for (var i = 0; i < rows; i++) { ...@@ -68,6 +68,17 @@ for (var i = 0; i < rows; i++) {
'target': "randomWalk('random walk2')" 'target': "randomWalk('random walk2')"
} }
], ],
seriesOverrides: [
{
alias: '/random/',
yaxis: 2,
fill: 0,
linewidth: 5
}
],
tooltip: {
shared: true
}
} }
] ]
}); });
......
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
"avg": false "avg": false
}, },
"percentage": false, "percentage": false,
"zerofill": true,
"nullPointMode": "connected", "nullPointMode": "connected",
"steppedLine": false, "steppedLine": false,
"tooltip": { "tooltip": {
......
...@@ -37,6 +37,17 @@ function (angular, app, _, $) { ...@@ -37,6 +37,17 @@ function (angular, app, _, $) {
return memo; return memo;
}, []); }, []);
$scope.menuItemSelected = function(optionIndex, valueIndex) {
var option = $scope.menuItems[optionIndex];
var result = {
$item: option.submenu[valueIndex],
$optionIndex: optionIndex,
$valueIndex: valueIndex
};
$scope.dropdownTypeaheadOnSelect(result);
};
$input.attr('data-provide', 'typeahead'); $input.attr('data-provide', 'typeahead');
$input.typeahead({ $input.typeahead({
source: typeaheadValues, source: typeaheadValues,
......
...@@ -150,10 +150,6 @@ function (angular, app, $, _, kbn, moment, TimeSeries) { ...@@ -150,10 +150,6 @@ function (angular, app, $, _, kbn, moment, TimeSeries) {
* queries * queries
*/ */
percentage : false, percentage : false,
/** @scratch /panels/histogram/3
* zerofill:: Improves the accuracy of line charts at a small performance cost.
*/
zerofill : true,
nullPointMode : 'connected', nullPointMode : 'connected',
......
...@@ -23,7 +23,7 @@ define([ ...@@ -23,7 +23,7 @@ define([
option.submenu = _.map(values, function(value, index) { option.submenu = _.map(values, function(value, index) {
return { return {
text: String(value), text: String(value),
click: 'setOverride(' + option.index + ',' + index + ')' click: 'menuItemSelected(' + option.index + ',' + index + ')'
}; };
}); });
......
...@@ -10,7 +10,14 @@ ...@@ -10,7 +10,14 @@
} }
</style> </style>
<form name="input" style="margin:0"> <form name="input" style="margin:0">
<ul class="nav nav-pills timepicker-dropdown"> <ul class="nav timepicker-dropdown">
<li class="grafana-menu-zoom-out">
<a class='small' ng-click='zoom(2)'>
Zoom Out
</a>
</li>
<li class="dropdown"> <li class="dropdown">
<a class="dropdown-toggle timepicker-dropdown" data-toggle="dropdown" href="" bs-tooltip="time.tooltip" data-placement="bottom" ng-click="dismiss();"> <a class="dropdown-toggle timepicker-dropdown" data-toggle="dropdown" href="" bs-tooltip="time.tooltip" data-placement="bottom" ng-click="dismiss();">
......
...@@ -13,12 +13,6 @@ ...@@ -13,12 +13,6 @@
</a> </a>
</li> </li>
<li class="grafana-menu-zoom-out">
<a class='small' ng-click='zoom(2)'>
Zoom Out
</a>
</li>
<li ng-repeat="pulldown in dashboard.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable"> <li ng-repeat="pulldown in dashboard.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable">
<grafana-simple-panel type="pulldown.type" ng-cloak> <grafana-simple-panel type="pulldown.type" ng-cloak>
</grafana-simple-panel> </grafana-simple-panel>
......
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
<td><span class="label label-info">CTRL+R</span></td> <td><span class="label label-info">CTRL+R</span></td>
<td>Refresh (Fetches new data and rerenders panels)</td> <td>Refresh (Fetches new data and rerenders panels)</td>
</tr> </tr>
<tr>
<td><span class="label label-info">CTRL+O</span></td>
<td>Enable/Disable shared graph crosshair</td>
</tr>
</table> </table>
</div> </div>
......
...@@ -23,7 +23,7 @@ function(angular, $) { ...@@ -23,7 +23,7 @@ function(angular, $) {
}); });
var helpModalScope = null; var helpModalScope = null;
keyboardManager.bind('shift+¿', function() { keyboardManager.bind('shift+?', function() {
if (helpModalScope) { return; } if (helpModalScope) { return; }
helpModalScope = $rootScope.$new(); helpModalScope = $rootScope.$new();
......
...@@ -61,6 +61,7 @@ function (angular) { ...@@ -61,6 +61,7 @@ function (angular) {
else if (e.which) { else if (e.which) {
code = e.which; code = e.which;
} }
var character = String.fromCharCode(code).toLowerCase(); var character = String.fromCharCode(code).toLowerCase();
if (code === 188) { if (code === 188) {
...@@ -93,6 +94,9 @@ function (angular) { ...@@ -93,6 +94,9 @@ function (angular) {
",": "<", ",": "<",
".": ">", ".": ">",
"/": "?", "/": "?",
"»": "?",
"«": "?",
"¿": "?",
"\\": "|" "\\": "|"
}; };
// Special Keys - and their codes // Special Keys - and their codes
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
position: fixed; position: fixed;
left: 0px; left: 0px;
right: 0px; right: 0px;
top: 54px; top: 51px;
height: 100%; height: 100%;
padding: 0 10px; padding: 0 10px;
background: @grafanaPanelBackground; background: @grafanaPanelBackground;
...@@ -134,9 +134,11 @@ ...@@ -134,9 +134,11 @@
.dashboard-fullscreen { .dashboard-fullscreen {
.main-view-container { .main-view-container {
height: 0;
overflow: hidden; overflow: hidden;
padding: 0; height: 0;
.row-control-inner {
display: none;
}
} }
} }
......
.submenu-controls-visible:not(.hide-controls) { .submenu-controls-visible:not(.hide-controls) {
.panel-fullscreen { .panel-fullscreen {
top: 91px; top: 88px;
} }
} }
......
...@@ -18,7 +18,7 @@ define([ ...@@ -18,7 +18,7 @@ define([
describe('Controller should init overrideMenu', function() { describe('Controller should init overrideMenu', function() {
it('click should include option and value index', function() { it('click should include option and value index', function() {
expect(ctx.scope.overrideMenu[1].submenu[1].click).to.be('setOverride(1,1)'); expect(ctx.scope.overrideMenu[1].submenu[1].click).to.be('menuItemSelected(1,1)');
}); });
}); });
......
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