Remove parent div when pressing next step button
When the modal has a warning prompt, click the next button
continuously, the modal page style will be error.
This patch remove parent div.
Closes-Bug:
@@ -103,7 +103,7 @@ horizon.modals.init_wizard = function () {
}
// Clear old errors.
- $form.find('div.row div.alert-danger').remove();
+ $form.find('div.row div.alert-danger').parent().remove();
$form.find('.form-group.has-error').each(function () {
var $group = $(this);
$group.removeClass('has-error');
