Skip to content

Commit

Permalink
MAGETWO-51582: [Github] When the "region" is not saved after editing …
Browse files Browse the repository at this point in the history
…shipping/billing address #4000
  • Loading branch information
Mulderua committed Apr 14, 2016
1 parent f4ae285 commit 588d94d
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,21 @@
<?php echo $block->getForm()->toHtml() ?>
</div>
</fieldset>
<script>
require([
'jquery'
], function (jQuery) {
jQuery(function() {
var setRegion = function() {
jQuery('#region').attr('value', jQuery('#region_id option:selected').text());
};

setRegion();

jQuery('#region_id').on('change', function() {
setRegion();
});
}
)
})
</script>

0 comments on commit 588d94d

Please sign in to comment.