Fix Bug 48723

This commit is contained in:
Julia Radzhabova 2021-02-19 12:07:55 +03:00
parent badb1c291b
commit b8a36e8f6d
3 changed files with 12 additions and 3 deletions

View file

@ -301,8 +301,14 @@ define([
_handleInput: function(state) {
if (this.options.handler) {
if (state == 'ok' && (this.btnOk.isDisabled() || this.signObject && !this.signObject.isValid()))
if (state == 'ok' && (this.btnOk.isDisabled() || this.signObject && !this.signObject.isValid())) {
if (!this.btnOk.isDisabled()) {
this.inputName.showError([this.textNameError]);
this.inputName.focus();
}
return;
}
this.options.handler.call(this, this, state);
}
@ -347,7 +353,8 @@ define([
tipFontSize: 'Font Size',
textBold: 'Bold',
textItalic: 'Italic',
textSelect: 'Select'
textSelect: 'Select',
textNameError: 'Signer name must not be empty.'
}, Common.Views.SignDialog || {}))
});

View file

@ -367,6 +367,7 @@
"Common.Views.SignDialog.textCertificate": "Certificate",
"Common.Views.SignDialog.textChange": "Change",
"Common.Views.SignDialog.textInputName": "Input signer name",
"Common.Views.SignDialog.textNameError": "Signer name must not be empty.",
"Common.Views.SignDialog.textItalic": "Italic",
"Common.Views.SignDialog.textPurpose": "Purpose for signing this document",
"Common.Views.SignDialog.textSelect": "Select",

View file

@ -367,6 +367,7 @@
"Common.Views.SignDialog.textCertificate": "Сертификат",
"Common.Views.SignDialog.textChange": "Изменить",
"Common.Views.SignDialog.textInputName": "Введите имя подписывающего",
"Common.Views.SignDialog.textNameError": "Имя подписывающего не должно быть пустым.",
"Common.Views.SignDialog.textItalic": "Курсив",
"Common.Views.SignDialog.textPurpose": "Цель подписания документа",
"Common.Views.SignDialog.textSelect": "Выбрать",