File tree 2 files changed +4
-6
lines changed
Static_Full_Project_GULP/src/js
Static_Starter_GULP/src/js
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,18 @@ $(document).ready(function($){
113
113
* CARDS ACTIONS
114
114
*/
115
115
116
- $ ( document ) . on ( 'click' , '.card-actions a, button' , function ( e ) {
116
+ $ ( '.card-actions' ) . on ( 'click' , 'a, button' , function ( e ) {
117
117
e . preventDefault ( ) ;
118
118
119
119
if ( $ ( this ) . hasClass ( 'btn-close' ) ) {
120
120
$ ( this ) . parent ( ) . parent ( ) . parent ( ) . fadeOut ( ) ;
121
121
} else if ( $ ( this ) . hasClass ( 'btn-minimize' ) ) {
122
- var $target = $ ( this ) . parent ( ) . parent ( ) . next ( '.card-body' ) . collapse ( { toggle : true } ) ;
122
+ // var $target = $(this).parent().parent().next('.card-body').collapse({toggle: true});
123
123
if ( $ ( this ) . hasClass ( 'collapsed' ) ) {
124
124
$ ( 'i' , $ ( this ) ) . removeClass ( $ . panelIconOpened ) . addClass ( $ . panelIconClosed ) ;
125
125
} else {
126
126
$ ( 'i' , $ ( this ) ) . removeClass ( $ . panelIconClosed ) . addClass ( $ . panelIconOpened ) ;
127
127
}
128
-
129
128
} else if ( $ ( this ) . hasClass ( 'btn-setting' ) ) {
130
129
$ ( '#myModal' ) . modal ( 'show' ) ;
131
130
}
Original file line number Diff line number Diff line change @@ -113,19 +113,18 @@ $(document).ready(function($){
113
113
* CARDS ACTIONS
114
114
*/
115
115
116
- $ ( document ) . on ( 'click' , '.card-actions a, button' , function ( e ) {
116
+ $ ( '.card-actions' ) . on ( 'click' , 'a, button' , function ( e ) {
117
117
e . preventDefault ( ) ;
118
118
119
119
if ( $ ( this ) . hasClass ( 'btn-close' ) ) {
120
120
$ ( this ) . parent ( ) . parent ( ) . parent ( ) . fadeOut ( ) ;
121
121
} else if ( $ ( this ) . hasClass ( 'btn-minimize' ) ) {
122
- var $target = $ ( this ) . parent ( ) . parent ( ) . next ( '.card-body' ) . collapse ( { toggle : true } ) ;
122
+ // var $target = $(this).parent().parent().next('.card-body').collapse({toggle: true});
123
123
if ( $ ( this ) . hasClass ( 'collapsed' ) ) {
124
124
$ ( 'i' , $ ( this ) ) . removeClass ( $ . panelIconOpened ) . addClass ( $ . panelIconClosed ) ;
125
125
} else {
126
126
$ ( 'i' , $ ( this ) ) . removeClass ( $ . panelIconClosed ) . addClass ( $ . panelIconOpened ) ;
127
127
}
128
-
129
128
} else if ( $ ( this ) . hasClass ( 'btn-setting' ) ) {
130
129
$ ( '#myModal' ) . modal ( 'show' ) ;
131
130
}
You can’t perform that action at this time.
0 commit comments