forked from bofh/fetsite
datetimepicker fix
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
|
||||
# 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://jashkenas.github.com/coffee-script/
|
||||
$ ->
|
||||
`$('.datetimepicker').datetimepicker({format: 'd.m.Y H:i', startDate: (!($(this).attr("value")==undefined))? $(this).attr("value"): '' })`
|
||||
return
|
||||
@@ -1,5 +1,7 @@
|
||||
<p>
|
||||
<b>Geburtstag</b> <%= I18n.l(interninfo.birthday,format: :short) unless interninfo.birthday.nil?%>
|
||||
<% unless interninfo.birthday.nil? %>
|
||||
<b>Geburtstag</b> <%= I18n.l(interninfo.birthday,format: :short) %>
|
||||
<% end %>
|
||||
</p>
|
||||
<p>
|
||||
<b>Adresse:</b>
|
||||
|
||||
@@ -34,7 +34,9 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('.datetimepicker').map($(this).datetimepicker({format: 'd.m.Y H:i', startDate: (!($(this).attr("value")==undefined))? $(this).attr("value"): ""}))
|
||||
})</script>
|
||||
$(document).ready(function(){
|
||||
$('.datetimepicker').map($(this).datetimepicker({format: 'd.m.Y H:i', startDate: (!($(this).attr("value")==undefined))? $(this).attr("value"): ""}))
|
||||
})
|
||||
$(document).ready(function(){$('.datetimepicker').datetimepicker({format: 'd.m.Y H:i', startDate: (!($(this).attr("value")==undefined))? $(this).attr("value"): ""})})
|
||||
</script>
|
||||
<%= tinymce %>
|
||||
|
||||
Reference in New Issue
Block a user