forked from bofh/fetsite
calentry js interface
This commit is contained in:
3
app/views/calentries/new.js.erb
Normal file
3
app/views/calentries/new.js.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
$("#calentry_new").replaceWith("<div id=\"calentry_new\"><%=escape_javascript( render :partial=>"nested_form" ,:object=>@calentry) %></div>");
|
||||
$('.datetimepicker').datetimepicker({format: 'd.m.Y H:i', startDate: (!($(this).attr("value")==undefined))? $(this).attr("value"): ""})
|
||||
|
||||
Reference in New Issue
Block a user