25 lines
751 B
JavaScript
25 lines
751 B
JavaScript
/*global define*/
|
|
define(
|
|
[ 'util/el', 'views/dialog', 'models/localisationmodel', 'util/localizetext' ],
|
|
function ( elHelper, Dialog, Localisationmodel, loc ) {
|
|
function AboutView ( parentEl ) {
|
|
if ( ! ( this instanceof AboutView ) ) {
|
|
return new AboutView ( parentEl );
|
|
}
|
|
|
|
var self = this;
|
|
var buttonEl = elHelper.createButton( 'about.info', 'about.infotitle', 'nav-button info-button', parentEl );
|
|
var dialog = Dialog( 'about-dialog', parentEl, buttonEl );
|
|
var aboutEl = elHelper.createEl( 'div', 'about-content' );
|
|
var textEl = document.querySelector( '.description' );
|
|
|
|
loc( textEl, 'innerHTML', 'index.description' );
|
|
|
|
aboutEl.appendChild( textEl );
|
|
|
|
dialog.add( aboutEl );
|
|
}
|
|
|
|
return AboutView;
|
|
}
|
|
); |