Skip to content

Commit

Permalink
fix bug in minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Justine Tunney committed Aug 16, 2011
1 parent 37790fa commit 5d40d96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chat/minify.js
Expand Up @@ -19,7 +19,7 @@ for (var n in infiles) {
var infile = infiles[n]; var infile = infiles[n];
var incode = fs.readFileSync(infile, 'utf8'); var incode = fs.readFileSync(infile, 'utf8');
size += incode.length; size += incode.length;
outcode += min(incode) + '\n'; outcode += min(incode) + ';\n';
} }


fs.writeFileSync(outfile, outcode); fs.writeFileSync(outfile, outcode);
Expand Down
4 changes: 2 additions & 2 deletions occupywallst/templates/admin/base_site.html
Expand Up @@ -43,10 +43,10 @@ <h1 id="site-name">OccupyWallSt Backend</h1>


<script src="/media/js/jquery-1.6.2{% if not DEBUG %}.min{% endif %}.js" type="text/javascript"></script> <script src="/media/js/jquery-1.6.2{% if not DEBUG %}.min{% endif %}.js" type="text/javascript"></script>
{% if not DEBUG and OWS_SCRIPTS_MINIFIED %} {% if not DEBUG and OWS_SCRIPTS_MINIFIED %}
<script src="{{ MEDIA_URL }}{{ OWS_SCRIPTS_MINIFIED }}?v=10" type="text/javascript"></script> <script src="{{ MEDIA_URL }}{{ OWS_SCRIPTS_MINIFIED }}?v=11" type="text/javascript"></script>
{% else %} {% else %}
{% for script in OWS_SCRIPTS %} {% for script in OWS_SCRIPTS %}
<script src="{{ MEDIA_URL }}{{ script }}?v=10" type="text/javascript"></script> <script src="{{ MEDIA_URL }}{{ script }}?v=11" type="text/javascript"></script>
{% endfor %} {% endfor %}
{% endif %} {% endif %}


Expand Down
4 changes: 2 additions & 2 deletions occupywallst/templates/occupywallst/base.html
Expand Up @@ -84,10 +84,10 @@
{% endblock body %} {% endblock body %}
<script src="/media/js/jquery-1.6.2{% if not DEBUG %}.min{% endif %}.js" type="text/javascript"></script> <script src="/media/js/jquery-1.6.2{% if not DEBUG %}.min{% endif %}.js" type="text/javascript"></script>
{% if not DEBUG and OWS_SCRIPTS_MINIFIED %} {% if not DEBUG and OWS_SCRIPTS_MINIFIED %}
<script src="{{ MEDIA_URL }}{{ OWS_SCRIPTS_MINIFIED }}?v=10" type="text/javascript"></script> <script src="{{ MEDIA_URL }}{{ OWS_SCRIPTS_MINIFIED }}?v=11" type="text/javascript"></script>
{% else %} {% else %}
{% for script in OWS_SCRIPTS %} {% for script in OWS_SCRIPTS %}
<script src="{{ MEDIA_URL }}{{ script }}?v=10" type="text/javascript"></script> <script src="{{ MEDIA_URL }}{{ script }}?v=11" type="text/javascript"></script>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<script src="//chat.{{ request.get_host }}/socket.io/socket.io.js" type="text/javascript"></script> <script src="//chat.{{ request.get_host }}/socket.io/socket.io.js" type="text/javascript"></script>
Expand Down

0 comments on commit 5d40d96

Please sign in to comment.