app.js generation actually works now

This commit is contained in:
Payton Quackenbush
2013-06-23 22:43:43 -05:00
parent 1b10eac01e
commit 8d28a8d862
3 changed files with 9 additions and 17 deletions

View File

@@ -1,3 +1,8 @@
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Dashing.Clock = (function(_super) {
__extends(Clock, _super);

View File

@@ -13,22 +13,10 @@ Dashing.gridsterLayout = (positions) ->
$(widget).attr('data-row', positions[index].row)
$(widget).attr('data-col', positions[index].col)
Dashing.getWidgetPositions = ->
$(".gridster ul:first").gridster().data('gridster').serialize()
Dashing.showGridsterInstructions = ->
newWidgetPositions = Dashing.getWidgetPositions()
unless JSON.stringify(newWidgetPositions) == JSON.stringify(Dashing.currentWidgetPositions)
Dashing.currentWidgetPositions = newWidgetPositions
$('#save-gridster').slideDown()
$('#gridster-code').text("
<script type='text/javascript'>\n
$(function() {\n
\ \ Dashing.gridsterLayout('#{JSON.stringify(Dashing.currentWidgetPositions)}')\n
});\n
</script>
")
data = $(".gridster ul:first").gridster().data('gridster').serialize();
$('#save-gridster').slideDown();
return $('#gridster-code').text(" <script type='text/javascript'>\n $(function() {\n \ \ Dashing.gridsterLayout('" + (JSON.stringify(data)) + "')\n });\n </script> ")
$ ->
$('#save-gridster').leanModal()

View File

@@ -28,7 +28,7 @@ def javascripts():
'assets/javascripts/jquery.knob.js',
'assets/javascripts/rickshaw.min.js',
#'assets/javascripts/application.coffee',
'assets/javascripts/application.js',
'assets/javascripts/app.js',
]
nizzle = True
if not nizzle:
@@ -36,7 +36,6 @@ def javascripts():
output = []
for path in scripts:
print path
output.append('// JS: %s\n' % path)
if '.coffee' in path:
print('Compiling Coffee for %s ' % path)