app/assets/javascripts/weeler/init.js.coffee in weeler-0.0.4 vs app/assets/javascripts/weeler/init.js.coffee in weeler-1.0.0
- old
+ new
@@ -1,8 +1,19 @@
#= require jquery
+#= require jquery-ui
#= require jquery_ujs
-#= require_tree "./vendor"
+#= require turbolinks
+#= require_tree ./vendor
+#= require_tree ./lib
#= require weeler/app
#= require_self
+app = {
+ boot: () ->
+ $('.weeler-file-inputs').bootstrapFileInput()
+ sortable.init()
+ $('[data-provide="rowlink"],[data-provides="rowlink"]').each () ->
+ $(this).rowlink($(this).data())
+}
+
$(document).ready () ->
- $('.weeler-file-inputs').bootstrapFileInput()
+ app.boot()
\ No newline at end of file