//= require jquery
//= require jquery_ujs
//= require best_in_place

//= require jquery-ui
//= require jquery-ui/datepicker-fi
//= require best_in_place.jquery-ui

//= require bootstrap
//= require_self

$.datepicker.setDefaults( $.datepicker.regional[ 'fi' ] );

$(function() {
   $( ".datepicker" ).datepicker( );
 });

function initPage(){
  // Add Error Form style with bootstrap
  $("div.form-group>div.field_with_errors").parent().addClass("error");
  $("#error_explanation").addClass("text-error");

}
$(window).bind('page:change', function() {
    initPage();
});

$(document).ready(function() {
  /* Activating Best In Place */
  jQuery(".best_in_place").best_in_place();
  /* and fading alerts */
  jQuery(".alert").delay(5000).fadeOut("slow");
});

@@ -11,16 +11,20 @@
 e jquery
+.min
 %0A//= req
@@ -87,16 +87,27 @@
 query-ui
+/datepicker
 %0A//= req
@@ -193,16 +193,20 @@
 ootstrap
+.min
 %0A//= req

use minified jss