File tree 1 file changed +22
-3
lines changed
engines/admin-lte/views/_namespace_/_name_
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -627,23 +627,42 @@ class="img-circle"
627
627
628
628
629
629
<script type =" text/javascript" >
630
+ var AdminLTEOptions = {
631
+ animationSpeed: 100
632
+ };
633
+
630
634
jQuery (function () {
635
+
631
636
var sidebar = $ (" #sidebar" );
632
637
var wrapper = $ (window , " .wrapper" );
633
638
634
639
sidebar .find (' li' ).click (function () {
635
640
var siblings = $ (this ).siblings ();
636
641
siblings .find (' >ul' ).hide ();
637
- siblings .removeClass (' active' );
638
- $ (this ).addClass (' active' );
642
+ siblings .removeClass (' active menu-open ' );
643
+ $ (this ).addClass (' active menu-open ' );
639
644
640
645
setTimeout (function () {
641
646
wrapper .trigger (' resize' );
642
647
});
643
648
});
644
649
645
- sidebar .find (' a.active' ).first ().parents (' li' ).addClass (' active menu-open' );
650
+ var activeLi = sidebar .find (' a.active' ).first ();
651
+ activeLi .parents (' li' ).addClass (' active menu-open' ).show ();
652
+ activeLi .parents (' ul' ).show ();
653
+
654
+ function updateWidth () {
655
+ var w = $ (window );
656
+ var body = $ (' body' );
657
+ body .css ({width: w .width ()});
658
+ $ (' .main-header' ).css ({width: w .width ()});
659
+ }
660
+
661
+ setTimeout (updateWidth);
662
+
663
+ $ (window ).on (' resize' , updateWidth);
646
664
});
665
+
647
666
</script >
648
667
649
668
</body >
You can’t perform that action at this time.
0 commit comments