Use the document ready shorthand.

pull/2751/head
XhmikosR 5 years ago
parent 3478837aab
commit 7853dcbd6e

@ -138,7 +138,7 @@ const CardRefresh = ($ => {
CardRefresh._jQueryInterface.call($(this), 'load') CardRefresh._jQueryInterface.call($(this), 'load')
}) })
$(document).ready(() => { $(() => {
$(Selector.DATA_REFRESH).each(function () { $(Selector.DATA_REFRESH).each(function () {
CardRefresh._jQueryInterface.call($(this)) CardRefresh._jQueryInterface.call($(this))
}) })

@ -1314,7 +1314,7 @@
<!-- AdminLTE for demo purposes --> <!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script> <script src="../../dist/js/demo.js"></script>
<script> <script>
$(document).ready(function () { $(function () {
bsCustomFileInput.init(); bsCustomFileInput.init();
}); });
</script> </script>

@ -798,7 +798,7 @@
<!-- AdminLTE for demo purposes --> <!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script> <script src="../../dist/js/demo.js"></script>
<script> <script>
$(document).ready(function () { $(function () {
$.validator.setDefaults({ $.validator.setDefaults({
submitHandler: function () { submitHandler: function () {
alert( "Form successful submitted!" ); alert( "Form successful submitted!" );

Loading…
Cancel
Save