Browse Source

Use the document ready shorthand.

XhmikosR 4 years ago
parent
commit
7853dcbd6e
3 changed files with 3 additions and 3 deletions
  1. 1 1
      build/js/CardRefresh.js
  2. 1 1
      pages/forms/general.html
  3. 1 1
      pages/forms/validation.html

+ 1 - 1
build/js/CardRefresh.js

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

+ 1 - 1
pages/forms/general.html

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

+ 1 - 1
pages/forms/validation.html

@@ -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!" );