* Do not send -debug versions of framework files
+ * add undo Zoom Button
+
-- Proxmox Support Team <support@proxmox.com> Tue, 03 May 2016 06:33:55 +0200
pve-manager (4.2-3) unstable; urgency=medium
width: 800,
height: 300,
- interactions: 'crosszoom',
+ interactions: [{
+ type: 'crosszoom'
+ }],
axes: [{
type: 'numeric',
position: 'left',
width: 140
},
listeners: {
- afterrender: 'onAfterRender'
+ afterrender: 'onAfterRender',
+ animationend: 'onAfterAnimation'
},
bytesArr : [
}
me.axes[0].setTitle(axisTitle);
+
+ me.addTool({
+ type: 'minus',
+ disabled: true,
+ tooltip: gettext('Undo Zoom'),
+ handler: function(){
+ var undoButton = me.interactions[0].getUndoButton();
+ if (undoButton.handler) {
+ undoButton.handler();
+ }
+ }
+ });
// add a series for each field we get
me.fields.forEach(function(item, index){
var title = item;
});
},
+ onAfterAnimation: function(chart, eopts) {
+ // if the undobuton is disabled,
+ // disable our tool
+ var ourUndoZoomButton = chart.tools[0];
+ var undoButton = chart.interactions[0].getUndoButton();
+ ourUndoZoomButton.setDisabled(undoButton.isDisabled());
+ },
+
initComponent: function() {
var me = this;