Download:
child 18:be40f584efc1
parent 16:46619ef56f14
17:d0dc83ebbf95
Anton Shestakov <av6@dwimlabs.net>, Sun, 20 Mar 2016 11:53:21 +0800
config: add config.js as a way to override values in Tram namespace

2 файлов изменено, 5 вставок(+), 0 удалений(-) [+]
config.js file | annotate | diff | comparison | revisions
register.html file | annotate | diff | comparison | revisions
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/config.js Sun Mar 20 11:53:21 2016 +0800
@@ -0,0 +1,4 @@
+_(Tram.config).extend({
+// host: location.host,
+// domain: location.hostname
+});
--- a/register.html Sun Mar 20 11:52:25 2016 +0800
+++ b/register.html Sun Mar 20 11:53:21 2016 +0800
@@ -87,6 +87,7 @@
<script src='/js/tram.js'></script>
<script src='/js/validation.js'></script>
+ <script src='/config.js'></script>
<script src='/js/register.js'></script>
</body>
</html>