12.01.2021, 12:45
Use hide-widget class, add to custom JS:
No need to duplicate this code for multiple widgets, use the same class and it will work correctly.
Code:
$(function() {
$('.hide-widget').off('vclick').on('vclick', hideWidgets);
});