var feedbackButton={id:"feedback-button",tag:"div",style:"display: none;"};Ext.DomHelper.append(Ext.getBody(),feedbackButton);
window.ATL_JQ_PAGE_PROPS={triggerFunction:function(a){jQuery("#feedback-button").click(function(b){b.preventDefault();a()})},environment:function(){var a={},b;b=window.version?new Zarafa.core.data.Version(window.version):container.getVersion();a["WebApp version"]=b.getSVN()?b.getWebApp()+"; revision "+b.getSVN():b.getWebApp();a["PHP-MAPI version"]=b.getZCP();if(b.getServer())a["Server version"]=b.getServer();return a}};Ext.namespace("Zarafa.feedback");
Zarafa.feedback.FeedbackPlugin=Ext.extend(Zarafa.core.Plugin,{constructor:function(a){a=a||{};Ext.applyIf(a,{name:"feedback"});Zarafa.feedback.FeedbackPlugin.superclass.constructor.call(this,a)},initPlugin:function(){Zarafa.feedback.FeedbackPlugin.superclass.initPlugin.apply(this,arguments);this.registerInsertionPoint("main.maintabbar.right",this.putTabbarButton,this)},putTabbarButton:function(){return{text:_("Feedback?"),handler:this.clickFeedback}},clickFeedback:function(){Ext.get("feedback-button").dom.click()}});
Zarafa.onReady(function(){container.registerPlugin(new Zarafa.feedback.FeedbackPlugin)});
