mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7826: UI - dialog widget - dependent dropdown field (dependsOn property specified) - fix a bug that default opton in dependent dropdown field didn't trigger change event handler until another option in dependent dropdown field was selected.
This commit is contained in:
parent
6df396c9c0
commit
3760fdeeb4
|
|
@ -237,7 +237,10 @@
|
|||
|
||||
if (($target.is(':checked') && !isReverse) ||
|
||||
($target.is(':unchecked') && isReverse)) {
|
||||
$dependent.css('display', 'inline-block');
|
||||
|
||||
$dependent.css('display', 'inline-block'); //show dependent dropdown field
|
||||
$dependent.change(); //trigger event handler for default option in dependent dropdown field (CLOUDSTACK-7826)
|
||||
|
||||
$dependent.each(function() {
|
||||
if ($(this).data('dialog-select-fn')) {
|
||||
$(this).data('dialog-select-fn')();
|
||||
|
|
|
|||
Loading…
Reference in New Issue