Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(156)

Side by Side Diff: app/index.html

Issue 7609043: Fix IE nitpicks
Patch Set: Created 12 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « [revision details] ('k') | app/views/topology/service.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Assemble a socket URL from the Location if one isn't 240 // Assemble a socket URL from the Location if one isn't
241 // provided. 241 // provided.
242 var loc = Y.getLocation(); 242 var loc = Y.getLocation();
243 var port = juju_config.socket_port || loc.port; 243 var port = juju_config.socket_port || loc.port;
244 var protocol = juju_config.socket_protocol || 'ws'; 244 var protocol = juju_config.socket_protocol || 'ws';
245 juju_config.socket_url = protocol + '://' + loc.hostname; 245 juju_config.socket_url = protocol + '://' + loc.hostname;
246 if (port) { 246 if (port) {
247 juju_config.socket_url += ':' + port; 247 juju_config.socket_url += ':' + port;
248 } 248 }
249 juju_config.socket_url += '/ws'; 249 juju_config.socket_url += '/ws';
250 console.log('websocket url', juju_config.socket_url);
251 } 250 }
252 app = new Y.juju.App(juju_config); 251 app = new Y.juju.App(juju_config);
253 // We need to activate the hotkeys when running the application 252 // We need to activate the hotkeys when running the application
254 // in production. Unit tests should call it manually. 253 // in production. Unit tests should call it manually.
255 app.activateHotkeys(); 254 app.activateHotkeys();
256 }); 255 });
257 }; 256 };
258 </script> 257 </script>
259 </body> 258 </body>
260 </html> 259 </html>
OLDNEW
« no previous file with comments | « [revision details] ('k') | app/views/topology/service.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b