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 = { ko.bindingHandlers.onEnter = {
init: (element, fValueAccessor, fAllBindingsAccessor, viewModel) => { init: (element, fValueAccessor, fAllBindingsAccessor, viewModel) => {
let fn = event => { let fn = event => {

View file

@ -28,15 +28,6 @@ class PluginPopupView extends AbstractViewNext {
this.hasReadme = ko.computed(() => !!this.readme()); this.hasReadme = ko.computed(() => !!this.readme());
this.hasConfiguration = ko.computed(() => 0 < this.configures().length); 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.bDisabeCloseOnEsc = true;
this.sDefaultKeyScope = KeyState.All; this.sDefaultKeyScope = KeyState.All;
@ -74,8 +65,8 @@ class PluginPopupView extends AbstractViewNext {
} }
onShow(oPlugin) { onShow(oPlugin) {
this.name(); this.name('');
this.readme(); this.readme('');
this.configures([]); this.configures([]);
if (oPlugin) { if (oPlugin) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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