From be5848fd4fa280e5a4606fef25669974414547a5 Mon Sep 17 00:00:00 2001 From: maTh Date: Tue, 15 Mar 2022 22:58:30 +0100 Subject: Improved: Sharing/Integration configuration (#4269) * stick plus button to select list * HTML improved very much * drag and drop improved * add URL button * fix remove button behavior * prepare for PR#4238 * improve length of inputs * First draft of documentation of the sharing services * new config option: depricated * i18n for depricated text * Doc: Blogotext depricated to 2023 * dropdown menu with config link and depricated sign * Update entry_bottom.phtml * Update 08_sharing_services.md * Update template.rtl.css * Typo Deprecated/Depricated * typo * updated the documentation comment * Update shares.php * Update app/i18n/fr/conf.php Co-authored-by: Alexandre Alapetite * Update p/scripts/draggable.js Co-authored-by: Alexandre Alapetite * Update p/scripts/draggable.js Co-authored-by: Alexandre Alapetite * Documentation: services from #4270 Co-authored-by: Alexandre Alapetite --- p/scripts/integration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'p/scripts/integration.js') diff --git a/p/scripts/integration.js b/p/scripts/integration.js index acd629573..d837ac9a0 100644 --- a/p/scripts/integration.js +++ b/p/scripts/integration.js @@ -21,7 +21,7 @@ const init_integration = function () { newShare = newShare.replace(/##key##/g, shares); newShare = newShare.replace(/##method##/g, shareType.getAttribute('data-method')); newShare = newShare.replace(/##field##/g, shareType.getAttribute('data-field')); - event.target.closest('.form-group').insertAdjacentHTML('beforebegin', newShare); + event.target.closest('formgroup').insertAdjacentHTML('beforebegin', newShare); shares++; }); @@ -30,7 +30,7 @@ const init_integration = function () { return; } - const deleteButton = event.target.closest('a.remove'); + const deleteButton = event.target.closest('.remove'); if (null === deleteButton || !deleteButton.closest) { return; } -- cgit v1.2.3