Widget : button zoom, cosmetic

This commit is contained in:
sparkyx 2024-08-27 10:39:33 +02:00
parent fc68535f11
commit 757bd43cd2
14 changed files with 103 additions and 26 deletions

View file

@ -4620,3 +4620,16 @@ Widget.prototype.remove_ident = function ()
elt[0].remove()
}
}
/**
* Put the widget in full size
* @param widget_domid {string} dom id of the widget to toggle the size
*/
Widget.prototype.toggle_full_size=function (widget_domid) {
if ( $(widget_domid).hasClassName('widget-full_size')) {
$(widget_domid).removeClassName('widget-full_size');
} else {
$(widget_domid).addClassName('widget-full_size');
}
}