From ae5e1fc59a808bd01f84d2f06cf787484ae3e79c Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Tue, 22 Feb 2022 14:36:15 +0100 Subject: [PATCH] Remove Cover image via double click --- bl-kernel/admin/views/editor.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bl-kernel/admin/views/editor.php b/bl-kernel/admin/views/editor.php index 228e0b41..25757355 100644 --- a/bl-kernel/admin/views/editor.php +++ b/bl-kernel/admin/views/editor.php @@ -214,6 +214,13 @@ enableBtnSave(); }); + $('#coverImagePreview').dblclick(function() { + $('#coverImage').val(''); + $(this).attr('src', HTML_PATH_CORE_IMG + 'default.svg'); + var args = { coverImage: '' } + savePage(args); + }); + // Modal description events // ------------------------------------------------------------------------ $('#btnSaveDescription').on('click', function() {