djmaze 2020-09-28 10:29:58 +02:00
parent a1a413dca2
commit 2d429297ad
9 changed files with 3 additions and 27 deletions

7
dev/External/ko.js vendored
View file

@ -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 => {

View file

@ -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) {

View file

@ -200,7 +200,6 @@ en:
DESC_NOTHING_TO_CONFIGURE: "Nothing to configure"
BUTTON_CLOSE: "Close"
BUTTON_SAVE: "Save"
TOOLTIP_ABOUT_TITLE: "About"
POPUPS_ASK:
DESC_WANT_CLOSE_THIS_WINDOW: "Are you sure you want to close this window?"
POPUPS_LANGUAGES:

View file

@ -197,7 +197,6 @@ de_DE:
DESC_NOTHING_TO_CONFIGURE: "Nichts zu konfigurieren"
BUTTON_CLOSE: "Schließen"
BUTTON_SAVE: "Speichern"
TOOLTIP_ABOUT_TITLE: "Über"
POPUPS_ASK:
DESC_WANT_CLOSE_THIS_WINDOW: "Sind Sie sicher, dass Sie dieses Fenster schließen möchten?"
POPUPS_LANGUAGES:

View file

@ -197,7 +197,6 @@ en_US:
DESC_NOTHING_TO_CONFIGURE: "Nothing to configure"
BUTTON_CLOSE: "Close"
BUTTON_SAVE: "Save"
TOOLTIP_ABOUT_TITLE: "About"
POPUPS_ASK:
DESC_WANT_CLOSE_THIS_WINDOW: "Are you sure you want to close this window?"
POPUPS_LANGUAGES:

View file

@ -194,7 +194,6 @@ es_ES:
DESC_NOTHING_TO_CONFIGURE: "Nada para configurar"
BUTTON_CLOSE: "Cerrar"
BUTTON_SAVE: "Guardar"
TOOLTIP_ABOUT_TITLE: "Acerca"
POPUPS_ASK:
DESC_WANT_CLOSE_THIS_WINDOW: "¿Estás seguro de que deseas cerrar esta ventana?"
POPUPS_LANGUAGES:

View file

@ -198,7 +198,6 @@ fr_FR:
DESC_NOTHING_TO_CONFIGURE: "Rien à configurer"
BUTTON_CLOSE: "Fermer"
BUTTON_SAVE: "Enregistrer"
TOOLTIP_ABOUT_TITLE: "A propos"
POPUPS_ASK:
DESC_WANT_CLOSE_THIS_WINDOW: "Êtes-vous sûr de vouloir fermer cette fenêtre ?"
POPUPS_LANGUAGES:

View file

@ -197,7 +197,6 @@ nl_NL:
DESC_NOTHING_TO_CONFIGURE: "Niets om te configureren"
BUTTON_CLOSE: "Annuleer"
BUTTON_SAVE: "Opslaan"
TOOLTIP_ABOUT_TITLE: "Over"
POPUPS_ASK:
DESC_WANT_CLOSE_THIS_WINDOW: "Weet u zeker dat u dit venster wilt stuiten?"
POPUPS_LANGUAGES:

View file

@ -6,6 +6,7 @@
&nbsp;
"<span data-bind="text: name"></span>"
</h4>
<span data-bind="visible: hasReadme, text: readme"></span>
</div>
<div class="modal-body">
<form class="form-horizontal plugin-form" action="#/" onsubmit="return false;">
@ -22,9 +23,6 @@
</form>
</div>
<div class="modal-footer">
<span class="information pull-left" data-bind="visible: hasReadme, popover: readmePopoverConf">
<i class="icon-info"></i>
</span>
<a class="btn buttonClose" data-bind="command: cancelCommand">
<i class="icon-remove"></i>
&nbsp;&nbsp;