Refactoring forms tip

This commit is contained in:
Julia Radzhabova 2021-10-29 18:50:41 +03:00
parent 20904787e2
commit 594d596619
3 changed files with 7 additions and 6 deletions

View file

@ -372,16 +372,15 @@ define([
placement: 'bottom-right',
target: target,
text: this.view.textCreateForm,
showLink: true
showLink: false,
closable: false,
showButton: true,
textButton: this.view.textGotIt
});
tip.on({
'dontshowclick': function() {
'buttonclick': function() {
Common.localStorage.setItem("de-hide-createform-tip", 1);
tip.close();
},
'closeclick': function() {
tip.close();
}
});
tip.show();

View file

@ -432,7 +432,8 @@ define([
capBtnSaveForm: 'Save as a Form',
tipSaveForm: 'Save a file as a fillable OFORM document',
txtUntitled: 'Untitled',
textCreateForm: 'Add fields and create a fillable OFORM document'
textCreateForm: 'Add fields and create a fillable OFORM document',
textGotIt: 'Got it'
}
}()), DE.Views.FormsTab || {}));
});

View file

@ -1830,6 +1830,7 @@
"DE.Views.FormsTab.tipViewForm": "View form",
"DE.Views.FormsTab.txtUntitled": "Untitled",
"DE.Views.FormsTab.textCreateForm": "Add fields and create a fillable OFORM document",
"DE.Views.FormsTab.textGotIt": "Got it",
"DE.Views.HeaderFooterSettings.textBottomCenter": "Bottom center",
"DE.Views.HeaderFooterSettings.textBottomLeft": "Bottom left",
"DE.Views.HeaderFooterSettings.textBottomPage": "Bottom of Page",