Remove Cover image via double click

This commit is contained in:
Diego Najar 2022-02-22 14:36:15 +01:00
parent da39fd6ce8
commit ae5e1fc59a

View file

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