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}))});
