Elastic: Fix displaying (.invalid-feedback) error messages in forms

pull/6669/head
Aleksander Machniak 6 years ago
parent 78070441de
commit d88fb7e4ff

@ -2575,7 +2575,7 @@ class rcube_sieve_engine
}
$script = rcmail_output::JS_OBJECT_NAME.'.managesieve_tip_register('.json_encode($this->tips).');';
$this->rc->output->add_script($script, 'foot');
$this->rc->output->add_script($script, 'docready');
}
protected function list_input($id, $name, $value, $enabled, $class, $size = null, $hidden = false)

@ -1250,6 +1250,7 @@ html.ms .propform {
.invalid-feedback {
color: @color-error;
font-size: 90%;
}
.form-group {

@ -3803,10 +3803,10 @@ function rcube_elastic_ui()
if (input.data('type') == 'list') {
input.data('error-msg', this[2]);
$('#' + this[0] + '_list > .invalid-feedback').text(this[2]);
return;
}
input.after($('<span class="invalid-feedback">').text(this[2]));
});
};

Loading…
Cancel
Save