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')
})
$(document).ready(() => {
$(() => {
$(Selector.DATA_REFRESH).each(function () {
CardRefresh._jQueryInterface.call($(this))
})

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

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

Loading…
Cancel
Save