@@ -28,8 +28,10 @@ jQuery( function () {
2828 height : "toggle"
2929 } , 500 ) ;
3030 } ) ;
31- }
3231
32+ }
33+
34+
3335 switchBlock ( "#borderColorBlock" , "#border" ) ;
3436 switchBlock ( "#closeButtonBlock" , "#showCloseButton" ) ;
3537 switchBlock ( "#overlayBlock" , "#overlayShow" ) ;
@@ -45,30 +47,6 @@ jQuery( function () {
4547 mySl . attr ( 'defSl' , defaultState ) ;
4648 } ) ;
4749
48- //Function enable codemirror on FancyBox Extra Calls
49- jQuery ( '.nav-tab-wrapper > li' ) . click ( function ( ) {
50- var ariaControls = jQuery ( this ) . attr ( 'aria-controls' ) ;
51- console . log ( jQuery ( '#' + ariaControls + ' textarea' ) ) ;
52-
53- jQuery ( '#' + ariaControls + ' textarea' ) . each ( function ( ) {
54- var tArea = jQuery ( this ) ;
55- console . log ( tArea . parents ( 'fieldset' ) . children ( 'input[type="checkbox"]:checked' ) ) ;
56- if ( tArea . parents ( 'fieldset' ) . children ( 'input[type="checkbox"]:checked' ) ) {
57- wp . codeEditor . initialize ( tArea ) ;
58- }
59- } ) ;
60- } ) ;
61-
62- jQuery ( 'input[type="checkbox"]' ) . click ( function ( ) {
63- if ( jQuery ( this ) . is ( ':checked' ) ) {
64- var tArea = jQuery ( this ) . parent ( ) . find ( 'textarea' ) ;
65- tArea . each ( function ( ) {
66- wp . codeEditor . initialize ( jQuery ( this ) ) ;
67- } ) ;
68- }
69- } ) ;
70-
71-
7250 //add color picker to buttons
7351 jQuery ( '.color-btn' ) . wpColorPicker ( ) ;
7452 } ) ;
0 commit comments