Browse Source

Use the document ready shorthand.

pull/2751/head
XhmikosR 5 years ago
parent
commit
7853dcbd6e
  1. 2
      build/js/CardRefresh.js
  2. 2
      pages/forms/general.html
  3. 2
      pages/forms/validation.html

2
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))
})

2
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>

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

Loading…
Cancel
Save