Selaa lähdekoodia

20220901 更新 custom.js

LuluFJ.Ho 2 vuotta sitten
vanhempi
commit
f5bded2a9d
1 muutettua tiedostoa jossa 3 lisäystä ja 4 poistoa
  1. 3
    4
      public/assets/js/custom.js

+ 3
- 4
public/assets/js/custom.js Näytä tiedosto

@@ -1,5 +1,4 @@
1
-
2
-jQuery(window).load(function() {
1
+jQuery(window).on('load', function() {
3 2
    
4 3
    "use strict";
5 4
    
@@ -14,7 +13,7 @@ jQuery(document).ready(function() {
14 13
    "use strict";
15 14
    
16 15
    // Toggle Left Menu
17
-   jQuery('.leftpanel .nav-parent > a').live('click', function() {
16
+   jQuery('.leftpanel .nav-parent').on('click', '> a', function() {
18 17
       
19 18
       var parent = jQuery(this).parent();
20 19
       var sub = parent.find('> ul');
@@ -62,7 +61,7 @@ jQuery(document).ready(function() {
62 61
    jQuery('.tooltips').tooltip({ container: 'body'});
63 62
    
64 63
    // Popover
65
-   jQuery('.popovers').popover();
64
+   // jQuery('.popovers').popover();
66 65
    
67 66
    // Close Button in Panels
68 67
    jQuery('.panel .panel-close').click(function(){