[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbutton/master] Bug 15837: Show descriptions if unchecking custom mode



commit d1ed854445b313c8539351820785981cda2bd37d
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Thu May 7 11:09:51 2015 +0000

    Bug 15837: Show descriptions if unchecking custom mode
---
 src/chrome/content/preferences.xul |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/chrome/content/preferences.xul b/src/chrome/content/preferences.xul
index d25fba4..dfc0f2e 100644
--- a/src/chrome/content/preferences.xul
+++ b/src/chrome/content/preferences.xul
@@ -297,8 +297,12 @@
             </vbox>
           </hbox>
           <hbox>
+            <!-- We are using |oncommand| instead of |onclick| as the former does
+               not fire if the checkbox is disabled and it does fire after the
+               checkbox adapted its state. -->
             <checkbox id="torbutton_sec_custom" flex="1"
-                      label="&torbutton.prefs.sec_custom;"/>
+               oncommand="torbutton_set_slider_text(document, event.target.checked);"
+               label="&torbutton.prefs.sec_custom;"/>
           </hbox>
         </groupbox>
       </vbox>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits