tmp commit

This commit is contained in:
2013-08-25 13:47:49 +00:00
parent fbe6a184f4
commit 4065607f40
11 changed files with 130 additions and 45 deletions

View File

@@ -5,8 +5,6 @@ Ext.namespace('Zarafa.plugins.calendarimporter.settings.ui');
* @extends Ext.grid.GridPanel
* @xtype calendarimporter.calsyncgrid
*
* {@link Zarafa.common.sendas.ui.SendAsGrid SendAsGrid} will be used to display
* sendas of the current user.
*/
Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid = Ext.extend(Ext.grid.GridPanel, {
/**
@@ -18,7 +16,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid = Ext.extend(Ext.grid.Gr
config = config || {};
Ext.applyIf(config, {
xtype : 'calendarimporter.calsyncpanel',
xtype : 'calendarimporter.calsyncgrid',
border : true,
store : config.store,
viewConfig : {
@@ -46,7 +44,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid = Ext.extend(Ext.grid.Gr
{
Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid.superclass.initEvents.call(this);
// select first sendas when store has finished loading
// select first icssync when store has finished loading
this.mon(this.store, 'load', this.onViewReady, this, {single : true});
},
@@ -126,7 +124,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid = Ext.extend(Ext.grid.Gr
/**
* Function will be called to remove a ics sync entry.
*/
removeSendAs : function()
removeIcsSyncAs : function()
{
var icsRecord = this.getSelectionModel().getSelected();
if(!icsRecord) {
@@ -152,4 +150,4 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid = Ext.extend(Ext.grid.Gr
}
});
Ext.reg('calendarimporter.calsyncpanel', Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid);
Ext.reg('calendarimporter.calsyncgrid', Zarafa.plugins.calendarimporter.settings.ui.CalSyncGrid);

View File

@@ -45,7 +45,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncPanel = Ext.extend(Ext.Panel,
{
return [{
xtype : 'displayfield',
value : _('Here you can .ics files that will be synchronised.'),
value : _('Here you can enter .ics files that will be synchronised.'),
fieldClass : 'x-form-display-field'
}, {
xtype : 'container',
@@ -74,7 +74,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncPanel = Ext.extend(Ext.Panel,
items : [{
xtype : 'button',
text : _('Add') + '...',
handler : this.onSendAsAdd,
handler : this.onCalSyncAdd,
ref : '../../addButton',
scope : this
}, {
@@ -85,7 +85,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncPanel = Ext.extend(Ext.Panel,
text : _('Remove') + '...',
disabled : true,
ref : '../../removeButton',
handler : this.onSendAsRemove,
handler : this.onCalSyncRemove,
scope : this
}]
}]
@@ -108,7 +108,7 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncPanel = Ext.extend(Ext.Panel,
* Handler function will be called when user clicks on 'Add' button.
* @private
*/
onSendAsAdd : function()
onCalSyncAdd : function()
{
Zarafa.core.data.UIFactory.openLayerComponent(Zarafa.core.data.SharedComponentType['plugins.calendarimporter.settings.dialogs.calsyncedit'], undefined, {
store : this.store,
@@ -133,9 +133,9 @@ Zarafa.plugins.calendarimporter.settings.ui.CalSyncPanel = Ext.extend(Ext.Panel,
* Handler function will be called when user clicks on 'Remove' button.
* @private
*/
onSendAsRemove : function()
onCalSyncRemove : function()
{
this.sendasGrid.removeSendAs();
this.calsyncGrid.removeIcsSyncAs();
},
/**