Mercurial > lada > lada-client
comparison app/view/About.js @ 386:00bf2d4f3bd1
Added about dialog.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 30 Aug 2013 11:11:00 +0200 |
parents | |
children | 6952e5dc9861 |
comparison
equal
deleted
inserted
replaced
385:08bb418f31c9 | 386:00bf2d4f3bd1 |
---|---|
1 /* | |
2 * Window to edit a Probe | |
3 */ | |
4 Ext.define('Lada.view.About', { | |
5 extend: 'Ext.window.Window', | |
6 alias: 'widget.about', | |
7 | |
8 title: 'Lada Information', | |
9 // Make size of the dialog dependend of the available space. | |
10 // TODO: Handle resizing the browser window. | |
11 width: Ext.getBody().getViewSize().width - 30, | |
12 height: Ext.getBody().getViewSize().height - 30, | |
13 autoShow: true, | |
14 autoScroll: true, | |
15 modal: true, | |
16 | |
17 initComponent: function() { | |
18 var sver = "tests" | |
19 var cver = "testc" | |
20 this.buttons = [ | |
21 { | |
22 text: 'Abbrechen', | |
23 scope: this, | |
24 handler: this.close, | |
25 } | |
26 ]; | |
27 this.items = [ | |
28 { html: "<h1>Lada</h1>Server version: " + sver + "<br>Client version: " + cver } | |
29 ]; | |
30 this.callParent(); | |
31 }, | |
32 }); | |
33 |