1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| define([
| 'dojo/_base/declare',
| 'dojo/string',
| 'dijit/_WidgetBase',
| 'dijit/_TemplatedMixin',
| 'dijit/Dialog',
| 'dojo/text!./templates/AboutDialog.html',
| 'dojo/i18n!../nls/laboratory',
| '../data/config'
| ], function (declare, string, _WidgetBase, _TemplatedMixin, Dialog, template, i18n, config) {
| var AboutContent = declare([ _WidgetBase, _TemplatedMixin ], {
| templateString: template,
| i18n: i18n,
|
| buildRendering: function () {
| this.inherited(arguments);
| this.appInformationNode.innerHTML = string.substitute(i18n.appInformation, config);
| }
| });
|
| return new Dialog({
| 'class': 'aboutDialog',
| content: new AboutContent(),
| draggable: false,
| title: i18n.aboutTitle
| });
| });
|
|