(function($) { | |
elRTE.prototype.ui.prototype.buttons.about = function(rte, name) { | |
this.constructor.prototype.constructor.call(this, rte, name); | |
this.active = true; | |
this.command = function() { | |
var opts, d, txt; | |
opts = { | |
rtl : rte.rtl, | |
submit : function(e, d) { d.close(); }, | |
dialog : { | |
width : 560, | |
title : this.rte.i18n('About this software'), | |
buttons : { | |
Ok : function() { $(this).dialog('destroy'); } | |
} | |
} | |
} | |
txt = '<div class="elrte-logo"></div><h3>'+this.rte.i18n('About elRTE')+'</h3><br clear="all"/>' | |
+'<div class="elrte-ver">'+this.rte.i18n('Version')+': '+this.rte.version+' ('+this.rte.build+')</div>' | |
+'<div class="elrte-ver">jQuery: '+$('<div/>').jquery+'</div>' | |
+'<div class="elrte-ver">jQueryUI: '+$.ui.version+'</div>' | |
+'<div class="elrte-ver">'+this.rte.i18n('Licence')+': BSD Licence</div>' | |
+'<p>' | |
+this.rte.i18n('elRTE is an open-source JavaScript based WYSIWYG HTML-editor.')+'<br/>' | |
+this.rte.i18n('Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.')+'<br/>' | |
+this.rte.i18n('You can use it in any commercial or non-commercial projects.') | |
+'</p>' | |
+'<h4>'+this.rte.i18n('Authors')+'</h4>' | |
+'<table class="elrte-authors">' | |
+'<tr><td>Dmitry (dio) Levashov <dio@std42.ru></td><td>'+this.rte.i18n('Chief developer')+'</td></tr>' | |
+'<tr><td>Troex Nevelin <troex@fury.scancode.ru></td><td>'+this.rte.i18n('Developer, tech support')+'</td></tr>' | |
+'<tr><td>Valentin Razumnyh <content@std42.ru></td><td>'+this.rte.i18n('Interface designer')+'</td></tr>' | |
+'<tr><td>Tawfek Daghistani <tawfekov@gmail.com></td><td>'+this.rte.i18n('RTL support')+'</td></tr>' | |
+(this.rte.options.lang != 'en' ? '<tr><td>'+this.rte.i18n('_translator')+'</td><td>'+this.rte.i18n('_translation')+'</td></tr>' : '') | |
+'</table>' | |
+'<div class="elrte-copy">Copyright © 2009-2011, <a href="http://www.std42.ru">Studio 42</a></div>' | |
+'<div class="elrte-copy">'+this.rte.i18n('For more information about this software visit the')+' <a href="http://elrte.org">'+this.rte.i18n('elRTE website')+'.</a></div>' | |
+'<div class="elrte-copy">Twitter: <a href="http://twitter.com/elrte_elfinder">elrte_elfinder</a></div>'; | |
d = new elDialogForm(opts); | |
d.append(txt); | |
d.open(); | |
} | |
this.update = function() { | |
this.domElem.removeClass('disabled'); | |
} | |
} | |
})(jQuery); |