Skip to content
Snippets Groups Projects
Commit 624b0c9e authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

ExtJS 4.2: Migrate buttonDownlaod (not tested).

parent bc850868
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
*/
Ext.define('App.ButtonDownload', {
extend: 'Ext.Button',
extend: 'Ext.button.Button',
alias: 'widget.xbuttondownload',
/**
......@@ -16,10 +16,8 @@ Ext.define('App.ButtonDownload', {
// private method requests by the component model of ExtJS
initComponent: function () {
"use strict";
// initialize the underlying class
App.ButtonDownload.superclass.initComponent.call(this);
// initialize the base class
this.callParent(arguments);
// download when the button is pressed
this.on('click', this.onDownload, this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment