mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Error messages not being shown in the UI or being shown in the wrong place
This commit is contained in:
parent
9916479f02
commit
545bc756f2
13 changed files with 66 additions and 34 deletions
|
@ -16,7 +16,6 @@ define(
|
|||
return this.name.toLowerCase() === validationName;
|
||||
});
|
||||
|
||||
|
||||
if (input.length === 0) {
|
||||
input = this.find('[validation-name]').filter(function () {
|
||||
return $(this).attr('validation-name').toLowerCase() === validationName;
|
||||
|
@ -58,7 +57,10 @@ define(
|
|||
};
|
||||
|
||||
$.fn.addFormError = function (error) {
|
||||
this.find('.form-group').parent().prepend('<div class="alert alert-error validation-error">' + error.errorMessage + '</div>');
|
||||
var t1 = this.find('.form-horizontal');
|
||||
var t2 = this.find('.form-horizontal').parent();
|
||||
|
||||
this.prepend('<div class="alert alert-danger validation-error">' + error.errorMessage + '</div>');
|
||||
};
|
||||
|
||||
$.fn.removeAllErrors = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue