Open siolag161 opened 9 years ago
@siolag161 why you did not use $(wrapper)
instead of document.addEventListener('DOMContentLoaded')
?
<script type="text/javascript">
$(function() {
$("#%(id)s").datetimepicker(%(options)s);
});
</script>
BTW +1 for this :clap:
@rafaelverger He doesn't use jQuery because that's the whole issue of #61: if jQuery is loaded at the bottom of the page the code will fail.
As suggested by the title, this is a simple fix for #61 :
Please note that it does not work in IE8 or older ( due to the lack of support for
DOMContentLoaded
). Look at here for a discussion on how to doonDocumentReady
without Jquery loaded. (I'm not a fan ofdefer
)