Ext.namespace("Zarafa.plugins.webappmanual");
Zarafa.plugins.webappmanual.ManualPlugin=Ext.extend(Zarafa.core.Plugin,{manualShortcuts:{mail:"mail.html",calendar:"calendar.html",contact:"contacts.html",task:"tasks.html",note:"notes.html",settings:"settings.html"},initPlugin:function(){Zarafa.plugins.webappmanual.ManualPlugin.superclass.initPlugin.apply(this,arguments);this.registerInsertionPoint("main.maintabbar.right",this.createManualMainTab,this)},createManualMainTab:function(){return{text:_("Help"),tabOrderIndex:0,handler:this.onHelpButton,
scope:this}},onHelpButton:function(){var a=this.manualShortcuts[container.getCurrentContext().getName()],b=container.getSettingsModel().get(this.getSettingsBase()+"/url");Ext.isEmpty(a)||(b+="/"+a);window.open(b,"webapp_manual")}});Zarafa.onReady(function(){container.registerPlugin(new Zarafa.core.PluginMetaData({name:"webappmanual",displayName:_("WebApp Manual"),pluginConstructor:Zarafa.plugins.webappmanual.ManualPlugin}))});
