A website template with lots of features, built with ruby on rails.

admin_panel.js.coffee 394B

1234567891011
  1. # Place all the behaviors and hooks related to the matching controller here.
  2. # All this logic will automatically be available in application.js.
  3. # You can use CoffeeScript in this file: http://coffeescript.org/
  4. attachHandler = ->
  5. $(".bootstrap_switch").bootstrapSwitch('size', 'large');
  6. $('#admin_navbar').affix()
  7. $(document).ready attachHandler
  8. $(document).on "page:load", attachHandler