Mercurial > lada > lada-client
comparison app.js @ 668:3e91716f5862 openid
Create the viewport manually on application startup.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 19 Mar 2015 14:29:55 +0100 |
parents | 7fd9350eacf9 |
children | 8756f7e423fb |
comparison
equal
deleted
inserted
replaced
618:fb89f61ab272 | 668:3e91716f5862 |
---|---|
52 noCache: true | 52 noCache: true |
53 }, | 53 }, |
54 | 54 |
55 // Setting this variable to true triggers loading the Viewport.js | 55 // Setting this variable to true triggers loading the Viewport.js |
56 // file which sets ob the viewport. | 56 // file which sets ob the viewport. |
57 autoCreateViewport: true, | 57 //autoCreateViewport: true, |
58 | 58 |
59 // Start the application. | 59 // Start the application. |
60 launch: function() { | 60 launch: function() { |
61 var queryString = document.location.href.split('?')[1]; | 61 var queryString = document.location.href.split('?')[1]; |
62 if (queryString) { | 62 if (queryString) { |
101 }, | 101 }, |
102 | 102 |
103 onLoginSuccess: function(response, opts) { | 103 onLoginSuccess: function(response, opts) { |
104 /* Strip out the openid query params to look nicers. */ | 104 /* Strip out the openid query params to look nicers. */ |
105 window.history.pushState(this.name, this.name, window.location.pathname); | 105 window.history.pushState(this.name, this.name, window.location.pathname); |
106 | |
107 Ext.create('Lada.view.Viewport'); | |
106 | 108 |
107 /* Todo maybe parse username and such from login service response */ | 109 /* Todo maybe parse username and such from login service response */ |
108 Ext.create('Lada.store.Datenbasis', { | 110 Ext.create('Lada.store.Datenbasis', { |
109 storeId: 'datenbasis' | 111 storeId: 'datenbasis' |
110 }); | 112 }); |