Switch from having embeded JS in index.html to using document.ready in main.js
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 28 Dec 2011 20:04:20 +0000 (15:04 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 28 Dec 2011 20:04:20 +0000 (15:04 -0500)
web_frontend/index.html
web_frontend/main.js

index 96677a2921c272b95ef41fcc8e4f32057901470d..ffefd9b5c37f473c26d97c91335677e9e4213ec7 100644 (file)
@@ -14,9 +14,5 @@
     <ul id="ls"></ul>
 
     <div id="footer"></div>
-
-    <script type="text/javascript" charset="utf-8">
-      var app = new armadillo.App();
-    </script>
   </body>
 </html>
index 26f03b16359c88fad8eefc11a31aa49c95fa7092..db8b89fe20a930d00844a156eb80258346b92666 100644 (file)
@@ -9,6 +9,10 @@
 
 $.namespace('armadillo.App');
 
+$(document).ready(function() {
+    app = new armadillo.App();
+});
+
 armadillo.App = function() {
   var start_path = '/';
   if (window.location.hash) {