From 36d146f8e234bf0b74f3d937fa4e1b47b9b58935 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Feb 2010 23:33:15 +0300 Subject: notifier: fix icons; support single-user mode --- utils/notifier/options.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'utils/notifier/options.html') diff --git a/utils/notifier/options.html b/utils/notifier/options.html index 014c2a3c7..af7de0244 100644 --- a/utils/notifier/options.html +++ b/utils/notifier/options.html @@ -39,6 +39,7 @@ function save() { localStorage['show_badge'] = (f.show_badge.checked) ? "1" : "0"; localStorage['show_fresh'] = (f.show_fresh.checked) ? "1" : "0"; + localStorage['single_user'] = (f.single_user.checked) ? "1" : "0"; var d = new Date(); @@ -49,6 +50,12 @@ function save() { return false; } +function single_user_toggle() { + var f = document.forms['options']; + + f.login.disabled = f.single_user.checked; +} + function init() { var f = document.forms['options']; @@ -77,6 +84,13 @@ function init() { else f.show_fresh.checked = false; + if (localStorage['single_user']) + f.single_user.checked = localStorage['single_user'] == "1"; + else + f.single_user.checked = false; + + single_user_toggle(); + var last_updated = $('last_updated'); var d = new Date(); @@ -141,6 +155,12 @@ fieldset span.note { +
+ + +
+
-- cgit v1.2.3