From 624b0c9e77feb5b1bc59093628d4527cecc530a2 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <legac@cppm.in2p3.fr>
Date: Fri, 22 Nov 2013 15:06:37 +0100
Subject: [PATCH] ExtJS 4.2: Migrate buttonDownlaod (not tested).

---
 static/plugin_dbui/src/buttondownload.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/static/plugin_dbui/src/buttondownload.js b/static/plugin_dbui/src/buttondownload.js
index da43a7e5..7fdab597 100644
--- a/static/plugin_dbui/src/buttondownload.js
+++ b/static/plugin_dbui/src/buttondownload.js
@@ -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);
-- 
GitLab