← All changes
|
includes/page-form-builder/preview/_src/bfb-preview.js
+5
-0
11.4
→
11.9
View file →
| @@ -170,8 +170,11 @@ | ||
| 170 | 170 | if ( control.matches && control.matches( 'input[type="radio"]' ) ) { |
| 171 | 171 | checked = d.querySelector( 'input[type="radio"][name="' + control.name + '"]:checked' ); |
| 172 | 172 | return checked ? String( checked.value || '' ) : null; |
| 173 | 173 | } |
| 174 | + if ( control.matches && control.matches( 'input[type="checkbox"]' ) ) { | |
| 175 | + return control.checked ? 'On' : 'Off'; | |
| 176 | + } | |
| 174 | 177 | |
| 175 | 178 | if ( typeof control.value !== 'undefined' ) { |
| 176 | 179 | return String( control.value == null ? '' : control.value ); |
| 177 | 180 | } |
| @@ -186,8 +189,10 @@ | ||
| 186 | 189 | */ |
| 187 | 190 | get_current_form_style_settings() { |
| 188 | 191 | var style_keys = [ |
| 189 | 192 | 'booking_form_style', |
| 193 | + 'booking_form_accent_enabled', | |
| 194 | + 'booking_form_accent_color', | |
| 190 | 195 | 'booking_form_custom_background_color', |
| 191 | 196 | 'booking_form_custom_border_color', |
| 192 | 197 | 'booking_form_custom_border_width', |
| 193 | 198 | 'booking_form_custom_border_radius', |