Commit 8f78a916 authored by Emmanuel Kasper's avatar Emmanuel Kasper Committed by Dietmar Maurer

ext5migrate: move setting the Panel title into the class properties

Ext.applyIf(me, {
	    title: gettext('Search')
});
in initComponent() is not safe anymore with ExtJS5.
Since the 'title' property is existing at that stage (even if with a null or undefined value), Ext.applyIf will not update it.
parent 5679e9b0
......@@ -5,6 +5,8 @@ Ext.define('PVE.grid.ResourceGrid', {
//fixme: this makes still problems with the scrollbar
//features: [ {ftype: 'chunking'}],
title: gettext('Search'),
initComponent : function() {
var me = this;
......@@ -148,10 +150,6 @@ Ext.define('PVE.grid.ResourceGrid', {
updateGrid();
};
Ext.applyIf(me, {
title: gettext('Search')
});
Ext.apply(me, {
store: store,
tbar: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment