webui: fix required error notification in multivalued widget

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik committed 2014-07-01 10:19:46 +02:00
1 parent 93de5db39e
commit c693b28bab
1 file changed
+3 -4
+3 -4
View File
@@ -917,7 +917,7 @@ IPA.multivalued_widget = function(spec) {
var old = that.valid;
that.valid = result.valid;
if (!result.valid && result.errors) {
if (!result.valid && result.results) {
var offset = 0;
for (var i=0; i<that.rows.length; i++) {
@@ -936,10 +936,9 @@ IPA.multivalued_widget = function(spec) {
var error_link = that.get_error_link();
error_link.css('display', 'none');
error_link.html('');
} else {
that.show_error(result.message);
}
} else if (!result.valid) {
that.show_error(result.message);
} else {
that.hide_error();
}