Mercurial > lada > lada-client
comparison app/view/Viewport.js @ 386:00bf2d4f3bd1
Added about dialog.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 30 Aug 2013 11:11:00 +0200 |
parents | ea424aacd07f |
children | 92a960b691a4 |
comparison
equal
deleted
inserted
replaced
385:08bb418f31c9 | 386:00bf2d4f3bd1 |
---|---|
38 callback: function(a,b,c) { | 38 callback: function(a,b,c) { |
39 var info = store.data.items[0]; | 39 var info = store.data.items[0]; |
40 var clientVersion = "r261 (2013-07-26)"; | 40 var clientVersion = "r261 (2013-07-26)"; |
41 var user = info.get('user'); | 41 var user = info.get('user'); |
42 var groups = info.get('groups'); | 42 var groups = info.get('groups'); |
43 var serverVersion = info.get('version'); | |
44 var info = Ext.getCmp('systeminfo'); | |
45 var groupinfo = Ext.getCmp('groupinfo'); | 43 var groupinfo = Ext.getCmp('groupinfo'); |
46 var userinfo = Ext.getCmp('userinfo'); | 44 var userinfo = Ext.getCmp('userinfo'); |
47 userinfo.update(user); | 45 userinfo.update(user); |
48 groupinfo.update(groups); | 46 groupinfo.update(groups); |
49 info.update('Server: '+serverVersion+' | Client: '+clientVersion); | |
50 info.show(); | |
51 console.log(info); | 47 console.log(info); |
52 } | 48 } |
53 }); | 49 }); |
54 }, | 50 }, |
55 /** | 51 /** |
158 items: [{ | 154 items: [{ |
159 xtype: "splitbutton", | 155 xtype: "splitbutton", |
160 text: "Info", | 156 text: "Info", |
161 menu: { | 157 menu: { |
162 items: [{ | 158 items: [{ |
159 id: 'AboutBtn', | |
163 text: "About" | 160 text: "About" |
164 }] | 161 }] |
165 } | 162 } |
166 }, | 163 }, |
167 "->", | 164 "->", |
171 {xtype: "tbtext", id:"groupinfo", text:""} | 168 {xtype: "tbtext", id:"groupinfo", text:""} |
172 ] | 169 ] |
173 } | 170 } |
174 ], | 171 ], |
175 items: [ | 172 items: [ |
176 // Informationen über Nutzer/Gruppe/Version | |
177 { | |
178 xtype: 'panel', | |
179 id: 'systeminfo', | |
180 bodyPadding: '5', | |
181 hidden: true, | |
182 }, | |
183 // Auswahl einer Abfrage. | 173 // Auswahl einer Abfrage. |
184 { | 174 { |
185 xtype: 'queryselector', | 175 xtype: 'queryselector', |
186 id: 'queryselector', | 176 id: 'queryselector', |
187 margin: '0 0 10 0' | 177 margin: '0 0 10 0' |