mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
This commit is contained in:
parent
a1a413dca2
commit
2d429297ad
9 changed files with 3 additions and 27 deletions
7
dev/External/ko.js
vendored
7
dev/External/ko.js
vendored
|
|
@ -83,13 +83,6 @@ ko.bindingHandlers.dropdownCloser = {
|
|||
)
|
||||
};
|
||||
|
||||
ko.bindingHandlers.popover = {
|
||||
init: (element, fValueAccessor) => {
|
||||
const conf = ko.unwrap(fValueAccessor());
|
||||
element.title = conf.content; // conf.title
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.onEnter = {
|
||||
init: (element, fValueAccessor, fAllBindingsAccessor, viewModel) => {
|
||||
let fn = event => {
|
||||
|
|
|
|||
|
|
@ -28,15 +28,6 @@ class PluginPopupView extends AbstractViewNext {
|
|||
this.hasReadme = ko.computed(() => !!this.readme());
|
||||
this.hasConfiguration = ko.computed(() => 0 < this.configures().length);
|
||||
|
||||
this.readmePopoverConf = {
|
||||
'placement': 'right',
|
||||
'trigger': 'hover',
|
||||
'title': i18n('POPUPS_PLUGIN/TOOLTIP_ABOUT_TITLE'),
|
||||
'container': 'body',
|
||||
'html': true,
|
||||
'content': () => `<pre>${this.readme()}</pre>`
|
||||
};
|
||||
|
||||
this.bDisabeCloseOnEsc = true;
|
||||
this.sDefaultKeyScope = KeyState.All;
|
||||
|
||||
|
|
@ -74,8 +65,8 @@ class PluginPopupView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
onShow(oPlugin) {
|
||||
this.name();
|
||||
this.readme();
|
||||
this.name('');
|
||||
this.readme('');
|
||||
this.configures([]);
|
||||
|
||||
if (oPlugin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue