fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-17 10:01 am

[dw-free] openids cannot select icons in ?mode=reply

[commit: http://hg.dwscoalition.org/dw-free/rev/df0306930552]

http://bugs.dwscoalition.org/show_bug.cgi?id=2959

Don't disable icon dropdown for logged in openid users.

Patch by [personal profile] fu.

Files modified:
  • htdocs/js/talkpost.js
--------------------------------------------------------------------------------
diff -r b89e286f4d4c -r df0306930552 htdocs/js/talkpost.js
--- a/htdocs/js/talkpost.js	Tue Aug 17 17:42:33 2010 +0800
+++ b/htdocs/js/talkpost.js	Tue Aug 17 18:00:54 2010 +0800
@@ -122,7 +122,7 @@ function handleRadios(sel) {
         }
     }
 
-    if (sel_pickw.disabled = (sel != 1)) sel_pickw.value='';
+    if (sel_pickw.disabled = (sel != 1 && sel != 4 )) sel_pickw.value='';
 }
 
 function submitHandler() {
--------------------------------------------------------------------------------
kareila: Millie sticking out her tongue. (sillymillie)

[personal profile] kareila 2010-08-17 05:43 pm (UTC)(link)
Wow, this is one of the most obscure things I've ever seen. I think it's the use of magic integers instead of some sort of named value that is throwing me.
kareila: (Default)

[personal profile] kareila 2010-08-18 12:39 am (UTC)(link)
Good call. I couldn't let it pass without comment, though. :)