Refactoring sign settings dialog, set default values
This commit is contained in:
parent
9debf2511e
commit
330549d850
|
@ -63,10 +63,7 @@ define([
|
|||
}, options || {});
|
||||
|
||||
this.template = [
|
||||
'<div class="box" style="height: 260px;">',
|
||||
'<div class="input-row">',
|
||||
'<label>' + this.textInfo + '</label>',
|
||||
'</div>',
|
||||
'<div class="box" style="height: 250px;">',
|
||||
'<div class="input-row">',
|
||||
'<label>' + this.textInfoName + '</label>',
|
||||
'</div>',
|
||||
|
@ -125,6 +122,7 @@ define([
|
|||
});
|
||||
|
||||
me.textareaInstructions = this.$window.find('textarea');
|
||||
me.textareaInstructions.val(this.textDefInstruction);
|
||||
me.textareaInstructions.keydown(function (event) {
|
||||
if (event.keyCode == Common.UI.Keys.RETURN) {
|
||||
event.stopPropagation();
|
||||
|
@ -136,7 +134,8 @@ define([
|
|||
this.chDate = new Common.UI.CheckBox({
|
||||
el: $('#id-dlg-sign-settings-date'),
|
||||
labelText: this.textShowDate,
|
||||
disabled: this.type=='view'
|
||||
disabled: this.type=='view',
|
||||
value: 'checked'
|
||||
});
|
||||
|
||||
$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
||||
|
@ -198,13 +197,14 @@ define([
|
|||
},
|
||||
|
||||
textInfo: 'Signer Info',
|
||||
textInfoName: 'Name',
|
||||
textInfoTitle: 'Signer Title',
|
||||
textInfoEmail: 'E-mail',
|
||||
textInstructions: 'Instructions for Signer',
|
||||
textInfoName: 'Suggested signer',
|
||||
textInfoTitle: 'Suggested signer\'s title',
|
||||
textInfoEmail: 'Suggested signer\'s e-mail',
|
||||
textInstructions: 'Instructions for signer',
|
||||
txtEmpty: 'This field is required',
|
||||
textAllowComment: 'Allow signer to add comment in the signature dialog',
|
||||
textShowDate: 'Show sign date in signature line',
|
||||
textTitle: 'Signature Setup'
|
||||
textTitle: 'Signature Setup',
|
||||
textDefInstruction: 'Before signing this document, verify that the content you are signing is correct.'
|
||||
}, Common.Views.SignSettingsDialog || {}))
|
||||
});
|
|
@ -506,14 +506,15 @@
|
|||
"Common.Views.SignDialog.tipFontName": "Font Name",
|
||||
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
||||
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
||||
"Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||
"Common.Views.SignSettingsDialog.textInfoEmail": "E-mail",
|
||||
"Common.Views.SignSettingsDialog.textInfoName": "Name",
|
||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title",
|
||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer",
|
||||
"del_Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||
"Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail",
|
||||
"Common.Views.SignSettingsDialog.textInfoName": "Suggested signer",
|
||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title",
|
||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer",
|
||||
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
||||
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
||||
"Common.Views.SignSettingsDialog.txtEmpty": "This field is required",
|
||||
"Common.Views.SignSettingsDialog.textDefInstruction": "Before signing this document, verify that the content you are signing is correct.",
|
||||
"Common.Views.SymbolTableDialog.textCharacter": "Character",
|
||||
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
||||
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
||||
|
|
|
@ -579,14 +579,15 @@
|
|||
"Common.Views.SignDialog.tipFontName": "Font Name",
|
||||
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
||||
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
||||
"Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||
"Common.Views.SignSettingsDialog.textInfoEmail": "E-mail",
|
||||
"Common.Views.SignSettingsDialog.textInfoName": "Name",
|
||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title",
|
||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer",
|
||||
"del_Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||
"Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail",
|
||||
"Common.Views.SignSettingsDialog.textInfoName": "Suggested signer",
|
||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title",
|
||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer",
|
||||
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
||||
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
||||
"Common.Views.SignSettingsDialog.txtEmpty": "This field is required",
|
||||
"Common.Views.SignSettingsDialog.textDefInstruction": "Before signing this document, verify that the content you are signing is correct.",
|
||||
"Common.Views.SymbolTableDialog.textCharacter": "Character",
|
||||
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
||||
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
||||
|
|
|
@ -442,14 +442,15 @@
|
|||
"Common.Views.SignDialog.tipFontName": "Font Name",
|
||||
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
||||
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
||||
"Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||
"Common.Views.SignSettingsDialog.textInfoEmail": "E-mail",
|
||||
"Common.Views.SignSettingsDialog.textInfoName": "Name",
|
||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title",
|
||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer",
|
||||
"del_Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||
"Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail",
|
||||
"Common.Views.SignSettingsDialog.textInfoName": "Suggested signer",
|
||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title",
|
||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer",
|
||||
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
||||
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
||||
"Common.Views.SignSettingsDialog.txtEmpty": "This field is required",
|
||||
"Common.Views.SignSettingsDialog.textDefInstruction": "Before signing this document, verify that the content you are signing is correct.",
|
||||
"Common.Views.SymbolTableDialog.textCharacter": "Character",
|
||||
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
||||
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
||||
|
|
Loading…
Reference in a new issue