calendarimporter/js/dialogs/ImportContentPanel.js

53 lines
1.4 KiB
JavaScript
Raw Normal View History

/**
* ImportContentPanel
*
* Container for the importpanel.
*
* @author Christoph Haas <mail@h44z.net>
* @modified 29.12.2012
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
2012-11-11 19:18:23 +01:00
Ext.namespace("Zarafa.plugins.calendarimporter.dialogs");
/**
* @class Zarafa.plugins.calendarimporter.dialogs.ImportContentPanel
* @extends Zarafa.core.ui.ContentPanel
*
* The content panel which shows the hierarchy tree of Owncloud account files.
* @xtype calendarimportercontentpanel
*/
Zarafa.plugins.calendarimporter.dialogs.ImportContentPanel = Ext.extend(Zarafa.core.ui.ContentPanel, {
/**
* @constructor
* @param config Configuration structure
*/
constructor : function(config)
{
config = config || {};
var title = _('Import Calendar File');
if(container.getSettingsModel().get("zarafa/v1/plugins/calendarimporter/enable_export")){
title = _('Import/Export Calendar File');
}
2012-11-11 19:18:23 +01:00
Ext.applyIf(config, {
layout : 'fit',
title : title,
2012-11-11 19:18:23 +01:00
closeOnSave : true,
width : 400,
height : 300,
//Add panel
items : [
2012-11-11 19:18:23 +01:00
{
xtype : 'calendarimporter.importpanel'
}
2012-11-11 19:18:23 +01:00
]
});
Zarafa.plugins.calendarimporter.dialogs.ImportContentPanel.superclass.constructor.call(this, config);
}
});
Ext.reg('calendarimporter.contentpanel' ,Zarafa.plugins.calendarimporter.dialogs.ImportContentPanel);