summaryrefslogtreecommitdiff
path: root/elm/UList/Opt.js
diff options
context:
space:
mode:
Diffstat (limited to 'elm/UList/Opt.js')
-rw-r--r--elm/UList/Opt.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/elm/UList/Opt.js b/elm/UList/Opt.js
index 6a4f126f..41bd1ce2 100644
--- a/elm/UList/Opt.js
+++ b/elm/UList/Opt.js
@@ -13,4 +13,9 @@ Elm.UList.Opt.init = function(opt) {
for(var i=0; i<rows.length; i++)
rows[i].classList.toggle('odd', Math.floor(i/2) % 2 == 0);
});
+
+ app.ports.ulistNotesChanged.subscribe(function(n) {
+ document.getElementById('ulist_notes_'+opt.flags.vid).innerText = n;
+ document.getElementById('ulist_noteflag_'+opt.flags.vid).classList.toggle('blurred', n.length == 0);
+ });
};