Ext.namespace("Zarafa.plugins.feedback");Zarafa.plugins.feedback.ABOUT='<p>Copyright (C) 2005-2013  Zarafa B.V. &lt;info@zarafa.com&gt;</p><p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p><p>This program 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 Affero General Public License for more details.</p><p>You should have received a copy of the GNU Affero General Public License along with this program.  If not, see <a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>.</p><hr /><p>The feedback plugin contains the following third-party components:</p><h1>jQuery</h1><p>Copyright 2013 jQuery Foundation and other contributors <a href="http://jquery.com/" target="_blank">http://jquery.com/</a></p><p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p><p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p><p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>';
window.ATL_JQ_PAGE_PROPS=function(){var c;return{triggerFunction:function(b){c=b},returnCallback:function(){return c},environment:function(){var b={},a;a=window.version?new Zarafa.core.data.Version(window.version):container.getVersion();b["WebApp version"]=a.getSVN()?a.getWebApp()+"; revision "+a.getSVN():a.getWebApp();b["PHP-MAPI version"]=a.getZCP();if(a.getServer())b["Server version"]=a.getServer();return b}}}();Ext.namespace("Zarafa.plugins.feedback");
Zarafa.plugins.feedback.FeedbackPlugin=Ext.extend(Zarafa.core.Plugin,{initPlugin:function(){Zarafa.plugins.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(){window.ATL_JQ_PAGE_PROPS.returnCallback()()}});
Zarafa.onReady(function(){container.registerPlugin(new Zarafa.core.PluginMetaData({name:"feedback",displayName:_("Feedback Plugin"),about:Zarafa.plugins.feedback.ABOUT,pluginConstructor:Zarafa.plugins.feedback.FeedbackPlugin}))});
