Skip to content
Snippets Groups Projects

Ignore more FS types in Disks usage for Admin System Info

All threads resolved!
Files
71
@@ -28,20 +28,32 @@ export default class Todos {
@@ -28,20 +28,32 @@ export default class Todos {
}
}
unbindEvents() {
unbindEvents() {
$('.js-done-todo, .js-undo-todo, .js-add-todo').off('click', this.updateRowStateClickedWrapper);
document.querySelectorAll('.js-done-todo, .js-undo-todo, .js-add-todo').forEach((el) => {
$('.js-todos-mark-all', '.js-todos-undo-all').off('click', this.updateallStateClickedWrapper);
el.removeEventListener('click', this.updateRowStateClickedWrapper);
$('.todo').off('click', this.goToTodoUrl);
});
$('.todo').off('auxclick', this.goToTodoUrl);
document.querySelectorAll('.js-todos-mark-all, .js-todos-undo-all').forEach((el) => {
 
el.removeEventListener('click', this.updateallStateClickedWrapper);
 
});
 
document.querySelectorAll('.todo').forEach((el) => {
 
el.removeEventListener('click', this.goToTodoUrl);
 
el.removeEventListener('auxclick', this.goToTodoUrl);
 
});
}
}
bindEvents() {
bindEvents() {
this.updateRowStateClickedWrapper = this.updateRowStateClicked.bind(this);
this.updateRowStateClickedWrapper = this.updateRowStateClicked.bind(this);
this.updateAllStateClickedWrapper = this.updateAllStateClicked.bind(this);
this.updateAllStateClickedWrapper = this.updateAllStateClicked.bind(this);
$('.js-done-todo, .js-undo-todo, .js-add-todo').on('click', this.updateRowStateClickedWrapper);
document.querySelectorAll('.js-done-todo, .js-undo-todo, .js-add-todo').forEach((el) => {
$('.js-todos-mark-all, .js-todos-undo-all').on('click', this.updateAllStateClickedWrapper);
el.addEventListener('click', this.updateRowStateClickedWrapper);
$('.todo').on('click', this.goToTodoUrl);
});
$('.todo').on('auxclick', this.goToTodoUrl);
document.querySelectorAll('.js-todos-mark-all, .js-todos-undo-all').forEach((el) => {
 
el.addEventListener('click', this.updateAllStateClickedWrapper);
 
});
 
document.querySelectorAll('.todo').forEach((el) => {
 
el.addEventListener('click', this.goToTodoUrl);
 
el.addEventListener('auxclick', this.goToTodoUrl);
 
});
}
}
initFilters() {
initFilters() {
@@ -181,7 +193,13 @@ export default class Todos {
@@ -181,7 +193,13 @@ export default class Todos {
}
}
updateBadges(data) {
updateBadges(data) {
$(document).trigger('todo:toggle', data.count);
const event = new CustomEvent('todo:toggle', {
 
detail: {
 
count: data.count,
 
},
 
});
 
 
document.dispatchEvent(event);
document.querySelector('.js-todos-pending .js-todos-badge').innerHTML = addDelimiter(
document.querySelector('.js-todos-pending .js-todos-badge').innerHTML = addDelimiter(
data.count,
data.count,
);
);
Loading