shuishen
2021-06-18 d12e030d8a7690d79c5786bc2a786b6c21a24433
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
    });
});