mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-23 20:49:21 +00:00
22 lines
583 B
JavaScript
22 lines
583 B
JavaScript
|
/**
|
||
|
* Notifications settings
|
||
|
*
|
||
|
* @author Pierre Hubert
|
||
|
*/
|
||
|
|
||
|
class NotificationsSettings {
|
||
|
static async Open(args, target) {
|
||
|
// Load template
|
||
|
const tpl = await Page.loadHTMLTemplate("pages/settings/notifications/NotificationsSection.html");
|
||
|
const el = document.createElement("div")
|
||
|
el.innerHTML = tpl;
|
||
|
target.appendChild(el);
|
||
|
|
||
|
el.querySelectorAll("input[type='checkbox']").forEach(e => {
|
||
|
$(e).iCheck({
|
||
|
checkboxClass: 'icheckbox_flat-blue',
|
||
|
radioClass: 'iradio_flat-blue'
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
}
|