2 small bugfixes

This commit is contained in:
Tyron Madlener 2011-06-29 21:01:43 +02:00
parent 0d64558f73
commit 3366e1f97b
2 changed files with 4 additions and 2 deletions

View File

@ -114,6 +114,7 @@ defaultOptions.exporting = {
symbolFill: '#A8BF77',
hoverSymbolFill: '#768F3E',
_titleKey: 'exportButtonTitle',
menuName: 'export',
menuItems: [{
textKey: 'downloadPNG',
onclick: function() {
@ -574,7 +575,7 @@ extend(Chart.prototype, {
onclick = function(e) {
revert();
var bBox = button.getBBox();
chart.contextMenu('export-menu', menuItems, bBox.x, bBox.y, buttonWidth, buttonHeight);
chart.contextMenu(btnOptions.menuName, menuItems, bBox.x, bBox.y, buttonWidth, buttonHeight);
};
}
/*addEvent(button.element, 'click', function() {

View File

@ -501,6 +501,7 @@ $(function() {
symbolFill: '#B5C9DF',
hoverSymbolFill: '#779ABF',
_titleKey: 'settings',
menuName: 'gridsettings',
menuItems: [{
textKey: 'editChart',
onclick: function() {
@ -672,7 +673,7 @@ $(function() {
},
xAxis: {
min: new Date().getTime() - server_time_diff - gridMaxPoints * gridRefresh,
max: new Date().getTime() - server_time_diff
max: new Date().getTime() - server_time_diff + gridRefresh
},
yAxis: {
title: {