0001-misc-apply-live-conditions-after-a-block-row-is-adde.patch
wcs/qommon/static/js/qommon.forms.js | ||
---|---|---|
657 | 657 |
const $new_blockrow = $new_block.find('.BlockSubWidget').last(); |
658 | 658 |
add_js_behaviours($('[data-field-id="' + block_id + '"]')); |
659 | 659 |
$('form').trigger('wcs:block-row-added'); |
660 |
if ($new_block.find('[data-live-source]')) { |
|
661 |
$('form div[data-live-source]').parents('form').trigger('wcs:change', {modified_field: 'init'}); |
|
662 |
} |
|
660 | 663 |
$new_blockrow[0].setAttribute('tabindex', '-1'); |
661 | 664 |
$new_blockrow[0].focus(); |
662 | 665 |
if ($new_blockrow.position().top < window.scrollY) { |
663 |
- |