Improved "notes" hiding

This commit is contained in:
janis
2022-11-29 19:20:53 +01:00
parent 9889fd4d38
commit a26426b081
2 changed files with 12 additions and 0 deletions

View File

@@ -2565,6 +2565,12 @@
( function( document, window ) { ( function( document, window ) {
'use strict'; 'use strict';
var notes = window.document.getElementsByClassName("notes")
for (let items in Object.entries(notes).values) {
items.style.display = "none"
}
// TODO: Move this to src/lib/util.js // TODO: Move this to src/lib/util.js
var triggerEvent = function( el, eventName, detail ) { var triggerEvent = function( el, eventName, detail ) {
var event = document.createEvent( 'CustomEvent' ); var event = document.createEvent( 'CustomEvent' );

View File

@@ -16,6 +16,12 @@
( function( document, window ) { ( function( document, window ) {
'use strict'; 'use strict';
var notes = window.document.getElementsByClassName("notes")
for (let items in Object.entries(notes).values) {
items.style.display = "none"
}
// TODO: Move this to src/lib/util.js // TODO: Move this to src/lib/util.js
var triggerEvent = function( el, eventName, detail ) { var triggerEvent = function( el, eventName, detail ) {
var event = document.createEvent( 'CustomEvent' ); var event = document.createEvent( 'CustomEvent' );