2 small bugfixes
This commit is contained in:
parent
0d64558f73
commit
3366e1f97b
@ -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() {
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user