File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 66
66
<option value="radial">Radial</option>
67
67
</select>
68
68
</div>
69
- <div class="input-container">
69
+ <div id="angle-input-container" class="input-container">
70
70
<label>Angle</label>
71
71
<div class="custom-number-input">
72
72
<button class="decrease">-</button>
80
80
</div>
81
81
` )
82
82
83
+ $ ( `${ this . containerSelector } .toolpanel#background-panel .content .gradient-orientation-container #select-orientation` ) . change ( function ( ) {
84
+ let type = $ ( this ) . val ( ) ;
85
+ console . log ( 'orientation' , type )
86
+ if ( type === 'radial' ) {
87
+ $ ( this ) . closest ( '.gradient-orientation-container' ) . find ( '#angle-input-container' ) . hide ( ) ;
88
+ } else {
89
+ $ ( this ) . closest ( '.gradient-orientation-container' ) . find ( '#angle-input-container' ) . show ( ) ;
90
+ }
91
+ } )
92
+
83
93
$ ( `${ this . containerSelector } .toolpanel#background-panel .content .tab-label` ) . click ( function ( ) {
84
94
$ ( `${ _self . containerSelector } .toolpanel#background-panel .content .tab-label` ) . removeClass ( 'active' ) ;
85
95
$ ( this ) . addClass ( 'active' ) ;
Original file line number Diff line number Diff line change 302
302
<option value="radial">Radial</option>
303
303
</select>
304
304
</div>
305
- <div class="input-container">
305
+ <div id="angle-input-container" class="input-container">
306
306
<label>Angle</label>
307
307
<div class="custom-number-input">
308
308
<button class="decrease">-</button>
316
316
</div>
317
317
` ) ;
318
318
319
+ $ ( `${ this . containerSelector } .toolpanel#select-panel .content .gradient-orientation-container #select-orientation` ) . change ( function ( ) {
320
+ let type = $ ( this ) . val ( ) ;
321
+ console . log ( 'orientation' , type )
322
+ if ( type === 'radial' ) {
323
+ $ ( this ) . closest ( '.gradient-orientation-container' ) . find ( '#angle-input-container' ) . hide ( ) ;
324
+ } else {
325
+ $ ( this ) . closest ( '.gradient-orientation-container' ) . find ( '#angle-input-container' ) . show ( ) ;
326
+ }
327
+ } )
328
+
319
329
$ ( `${ this . containerSelector } .toolpanel#select-panel .content .tab-label` ) . click ( function ( ) {
320
330
$ ( `${ _self . containerSelector } .toolpanel#select-panel .content .tab-label` ) . removeClass ( 'active' ) ;
321
331
$ ( this ) . addClass ( 'active' ) ;
You can’t perform that action at this time.
0 commit comments