annotate app/view/window/About.js @ 1313:c4ac1c09c0b0

another typo sorry for the spam
author Maximilian Krambach <mkrambach@intevation.de>
date Fri, 03 Feb 2017 09:47:52 +0100
parents 323f02e6e514
children
rev   line source
800
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 *
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 */
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
9 /**
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10 * About Window with basic information.
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11 */
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.window.About', {
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 extend: 'Ext.window.Window',
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 layout: 'fit',
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16
890
def27cdd0dfa Added Documentation to Windows
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
17 /**
def27cdd0dfa Added Documentation to Windows
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
18 * This function initialises the Window
def27cdd0dfa Added Documentation to Windows
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
19 */
800
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
20 initComponent: function() {
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
21 var i18n = Lada.getApplication().bundle;
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 // add listeners to change the window appearence when it becomes inactive
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 this.on({
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25 activate: function(){
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26 this.getEl().removeCls('window-inactive');
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27 },
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
28 deactivate: function(){
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29 this.getEl().addCls('window-inactive');
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
30 }
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
31 });
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
32
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 var me = this;
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
34 this.title = i18n.getMsg('about.window.title');
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
35 this.buttons = [{
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36 text: i18n.getMsg('close'),
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
37 scope: this,
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38 handler: this.close
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
39 }];
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
40 this.items = [{
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
41 border: 0,
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
42 autoscroll: 'true',
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
43 items: [{
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
44 xtype: 'panel',
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
45 border: 0,
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
46 layout: 'fit',
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
47 bodyPadding: 20,
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
48 html: '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
49 + i18n.getMsg('about.window.text.login')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
50 + '<br />'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
51 + Lada.username
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
52 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
53 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
54 + i18n.getMsg('about.window.text.roles')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
55 + this.rolesToHtml()
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
56 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
57 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
58 + i18n.getMsg('about.window.text.logintime')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
59 + '<br />'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
60 + Ext.Date.format(new Date(Lada.logintime), 'd.m.y h:i:s P')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
61 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
62 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
63 + i18n.getMsg('about.window.text.serverversion')+ ' '
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
64 + Lada.serverVersion
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
65 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
66 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
67 + i18n.getMsg('about.window.text.clientversion')+' '
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
68 + Lada.clientVersion
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
69 + '</p>'
800
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
70 }]
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
71 }];
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
72
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
73 this.callParent(arguments);
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
74 },
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
75
890
def27cdd0dfa Added Documentation to Windows
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
76 /**
def27cdd0dfa Added Documentation to Windows
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
77 * This function converts an Array into HTML-paragraphs
def27cdd0dfa Added Documentation to Windows
Dustin Demuth <dustin@intevation.de>
parents: 805
diff changeset
78 */
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
79 rolesToHtml: function() {
915
7da9161910e4 uncomment the roles.
Raimund Renkert <rrenkert@intevation.de>
parents: 914
diff changeset
80 var roles = '';
914
21b139cc41b2 Fixed parsing user roles in about dialog.
Raimund Renkert <rrenkert@intevation.de>
parents: 890
diff changeset
81 // var r = Lada.userroles.split(',');
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
82 var i;
914
21b139cc41b2 Fixed parsing user roles in about dialog.
Raimund Renkert <rrenkert@intevation.de>
parents: 890
diff changeset
83 for (i in Lada.userroles){
916
323f02e6e514 Use the roles...
Raimund Renkert <rrenkert@intevation.de>
parents: 915
diff changeset
84 roles += '<br />' + Lada.userroles[i];
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
85 }
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
86 return roles;
800
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
87 }
4b9b1d3ad9f1 Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
88 });

http://lada.wald.intevation.org