2013-05-20 23:09:51 +02:00
|
|
|
/**
|
|
|
|
* ImportContentPanel.js zarafa contact to vcf im/exporter
|
|
|
|
*
|
|
|
|
* Author: Christoph Haas <christoph.h@sprinternet.at>
|
2016-06-13 22:59:05 +02:00
|
|
|
* Copyright (C) 2012-2016 Christoph Haas
|
2013-05-20 23:09:51 +02:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
*/
|
2016-06-13 22:59:05 +02:00
|
|
|
|
2013-05-20 23:09:51 +02:00
|
|
|
/**
|
|
|
|
* ImportContentPanel
|
|
|
|
*
|
|
|
|
* Container for the importpanel.
|
|
|
|
*/
|
2016-06-13 22:59:05 +02:00
|
|
|
Ext.namespace("Zarafa.plugins.contactimporter.dialogs");
|
2013-05-20 23:09:51 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @class Zarafa.plugins.contactimporter.dialogs.ImportContentPanel
|
|
|
|
* @extends Zarafa.core.ui.ContentPanel
|
|
|
|
*
|
|
|
|
* The content panel which shows the hierarchy tree of Owncloud account files.
|
|
|
|
* @xtype contactimportercontentpanel
|
|
|
|
*/
|
|
|
|
Zarafa.plugins.contactimporter.dialogs.ImportContentPanel = Ext.extend(Zarafa.core.ui.ContentPanel, {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @constructor
|
|
|
|
* @param config Configuration structure
|
|
|
|
*/
|
2016-06-13 22:59:05 +02:00
|
|
|
constructor: function (config) {
|
2013-05-20 23:09:51 +02:00
|
|
|
config = config || {};
|
|
|
|
var title = _('Import Contacts');
|
|
|
|
Ext.applyIf(config, {
|
2016-06-13 22:59:05 +02:00
|
|
|
layout : 'fit',
|
|
|
|
title : title,
|
|
|
|
closeOnSave: true,
|
|
|
|
width : 620,
|
|
|
|
height : 465,
|
2013-05-20 23:09:51 +02:00
|
|
|
//Add panel
|
2016-06-13 22:59:05 +02:00
|
|
|
items : [
|
2013-05-20 23:09:51 +02:00
|
|
|
{
|
2016-06-13 22:59:05 +02:00
|
|
|
xtype : 'contactimporter.importcontactpanel',
|
2016-06-14 00:57:00 +02:00
|
|
|
filename: config.filename,
|
2016-06-19 00:16:25 +02:00
|
|
|
folder : config.folder
|
2013-05-20 23:09:51 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
Zarafa.plugins.contactimporter.dialogs.ImportContentPanel.superclass.constructor.call(this, config);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-06-13 22:59:05 +02:00
|
|
|
Ext.reg('contactimporter.contentpanel', Zarafa.plugins.contactimporter.dialogs.ImportContentPanel);
|