mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-20 04:45:17 +00:00
Created template
This commit is contained in:
22
assets/js/pages/settings/sections/notifications.js
Normal file
22
assets/js/pages/settings/sections/notifications.js
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* 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'
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user