1 // This is a manifest file that'll be compiled into application.js, which will include all the files
4 // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5 // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
7 // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
10 // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11 // GO AFTER THE REQUIRES BELOW.
14 //= require jquery_ujs
15 //= require twitter/bootstrap
16 //= require bootstrap-editable
17 //= require bootstrap-editable-rails
23 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
26 $('.editable').editable();
27 $('[data-toggle=tooltip]').tooltip();
29 $('.expand-collapse-row').on('click', function(event) {
30 var targets = $('#' + $(this).attr('data-id'));
31 if (targets.css('display') == 'none') {
32 $(this).addClass('icon-minus-sign');
33 $(this).removeClass('icon-plus-sign');
35 $(this).addClass('icon-plus-sign');
36 $(this).removeClass('icon-minus-sign');
38 targets.fadeToggle(200);