From bcf6445d92f1a57dff0b97bd9309f40b70088448 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Mar 2019 10:18:45 -0400 Subject: Added started/finished on dates to Game --- app/assets/javascripts/admin/dashboard.coffee | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/assets/javascripts/admin') diff --git a/app/assets/javascripts/admin/dashboard.coffee b/app/assets/javascripts/admin/dashboard.coffee index 24f83d1..4fa6cd8 100644 --- a/app/assets/javascripts/admin/dashboard.coffee +++ b/app/assets/javascripts/admin/dashboard.coffee @@ -1,3 +1,8 @@ # Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ +dash_ready = -> + $(".datepicker").datepicker({"dateFormat": "yy-mm-dd"}) + +$(document).ready(dash_ready) +$(document).on('turbolinks:load', dash_ready) -- cgit 1.4.1