File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to the Form Render Skip Logic module will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## [ 3.3.2] - 2018-08-14
6
+ ### Changed
7
+ - Fix wrong behavior of "Control mode" field on config form. (Tiago Bember Simeao)
8
+
9
+
5
10
## [ 3.3.1] - 2018-08-13
6
11
### Changed
7
12
- Refactor 2.x - 3.x migration in order to use External Modules API functions. (Tiago Bember Simeao)
Original file line number Diff line number Diff line change @@ -79,18 +79,13 @@ $(document).ready(function() {
79
79
} ) ;
80
80
81
81
$modal . find ( 'tr[field="control_mode"]' ) . each ( function ( ) {
82
- var defaultValue = 'default' ;
83
- $ ( this ) . find ( '.external-modules-input-element' ) . each ( function ( ) {
84
- // Not using ":checked" selector to get the selected radio
85
- // due to a possible bug on EM that unchecks radios within
86
- // repeatable elements.
87
- if ( typeof this . attributes . checked !== 'undefined' ) {
88
- defaultValue = $ ( this ) . val ( ) ;
89
- return false ;
90
- }
91
- } ) ;
82
+ var $checked = $ ( this ) . find ( '.external-modules-input-element:checked' ) ;
83
+
84
+ if ( $checked . length === 0 ) {
85
+ $checked = $ ( this ) . find ( '.external-modules-input-element[value="default"]' ) ;
86
+ }
92
87
93
- branchingLogicRadios ( $ ( this ) . find ( '.external-modules-input-element[value="' + defaultValue + '"]' ) ) ;
88
+ branchingLogicRadios ( $checked ) ;
94
89
} ) ;
95
90
96
91
$modal . find ( 'tr[field="control_mode"] .external-modules-input-element' ) . change ( function ( ) {
You can’t perform that action at this time.
0 commit comments