LEFT | RIGHT |
(no file at all) | |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html manifest="/juju-ui/assets/manifest.appcache"> | 2 <html manifest="/juju-ui/assets/manifest.appcache"> |
3 <!-- !IE will be true for all non-IE browsers and IE10 since it does not | 3 <!-- !IE will be true for all non-IE browsers and IE10 since it does not |
4 recognize conditional flags. --> | 4 recognize conditional flags. --> |
5 <!--[if !IE]><!--><script> | 5 <!--[if !IE]><!--><script> |
6 if (/*@cc_on!@*/false) { | 6 if (/*@cc_on!@*/false) { |
7 // Only IE10 has cc_on as false. | 7 // Only IE10 has cc_on as false. |
8 document.documentElement.className+=' ie10'; | 8 document.documentElement.className+=' ie10'; |
9 } | 9 } |
10 </script><!--<![endif]--> | 10 </script><!--<![endif]--> |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 --> | 229 --> |
230 <script src="/juju-ui/assets/all-yui.js"></script> | 230 <script src="/juju-ui/assets/all-yui.js"></script> |
231 <script src="/juju-ui/assets/modules.js"></script> | 231 <script src="/juju-ui/assets/modules.js"></script> |
232 <script src="/juju-ui/assets/config.js"></script> | 232 <script src="/juju-ui/assets/config.js"></script> |
233 <script> | 233 <script> |
234 // Now that all of the above JS is loaded we can define the real start | 234 // Now that all of the above JS is loaded we can define the real start |
235 // function which will be picked up by the setTimeout and the app will | 235 // function which will be picked up by the setTimeout and the app will |
236 // start. | 236 // start. |
237 startTheApp = function() { | 237 startTheApp = function() { |
238 setLoadingMessageText('Connecting to the Juju environment'); | 238 setLoadingMessageText('Connecting to the Juju environment'); |
239 YUI(GlobalConfig).use(['juju-gui'], function(Y) { | 239 |
| 240 // The QueryString module must be included before any Y.App code so |
| 241 // that the Y.Router will decode query strings with Y.QueryString |
| 242 // (which supports lists of values in the querystring) vs the |
| 243 // Y.Router._parseQuery which does not support list values. |
| 244 YUI(GlobalConfig).use(['querystring', 'juju-gui'], function(Y) { |
240 app = new Y.juju.App(juju_config); | 245 app = new Y.juju.App(juju_config); |
241 // We need to activate the hotkeys when running the application | 246 // We need to activate the hotkeys when running the application |
242 // in production. Unit tests should call it manually. | 247 // in production. Unit tests should call it manually. |
243 app.activateHotkeys(); | 248 app.activateHotkeys(); |
244 }); | 249 }); |
245 }; | 250 }; |
246 </script> | 251 </script> |
247 </body> | 252 </body> |
248 </html> | 253 </html> |
LEFT | RIGHT |