arcabouco 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arcabouco/version.rb +1 -1
- data/lib/templates/index.html.erb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c79f1863c6c785b08141c9cf5049434c20cab4
|
4
|
+
data.tar.gz: 6a34f1114ded1bf53cabb8a2cb2b0705646d7535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd458d111a2d407988257b9638a95d77636ccaa1dc7d04682cf77c1ed462619d7afc3657b882f071606fa18c12db49f4686865d9840060de78665cfc07a4747d
|
7
|
+
data.tar.gz: 2c0f20d0ba6d4146dc349a99e259694b56102047e3a97691ced17f277834352e72efd1ef7e10fb786a63322e1a77a5b5ff0435ef797d50081feac78fde41625d
|
data/lib/arcabouco/version.rb
CHANGED
@@ -49,11 +49,12 @@
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
|
52
|
-
function addScriptTag(src)
|
52
|
+
function addScriptTag(src,onload)
|
53
53
|
{
|
54
54
|
var newScript = document.createElement('script');
|
55
55
|
newScript.type = 'text/javascript';
|
56
56
|
newScript.src = '/app.assets/' + src;
|
57
|
+
newScript.onload = onload;
|
57
58
|
document.head.appendChild(newScript);
|
58
59
|
}
|
59
60
|
|
@@ -66,8 +67,10 @@
|
|
66
67
|
jQuery.getJSON( app.assets_manifest, function(data) {
|
67
68
|
$('head').append('<link rel="stylesheet" href="/app.assets/' + data.assets["vendor.css"] + '" type="text/css" />');
|
68
69
|
$('head').append('<link rel="stylesheet" href="/app.assets/' + data.assets["app.css"] + '" type="text/css" />');
|
69
|
-
addScriptTag( data.assets['vendor.js'] )
|
70
|
-
|
70
|
+
addScriptTag( data.assets['vendor.js'], function() {
|
71
|
+
// After vendor is loaded. Start application
|
72
|
+
addScriptTag( data.assets['app.js'] );
|
73
|
+
});
|
71
74
|
});
|
72
75
|
}
|
73
76
|
|