fu: Close-up of Fu, bringing a scoop of water to her mouth (fu)fu ([staff profile] fu) wrote in [site community profile] changelog,
@ 2012-01-25 12:48 pm UTC
  • Previous Entry
  • Add to Memories
  • Tell someone about this!
  • Next Entry

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

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

Use input type=button instead of button, to prevent submits in some
browsers. Also input type=button is the preferred now.

Patch by [staff profile] fu.

Files modified:
  • cgi-bin/LJ/Talk.pm
--------------------------------------------------------------------------------
diff -r a2c860e74f7d -r 4236ce44537e cgi-bin/LJ/Talk.pm
--- a/cgi-bin/LJ/Talk.pm	Mon Jan 23 11:37:12 2012 +0000
+++ b/cgi-bin/LJ/Talk.pm	Wed Jan 25 20:50:16 2012 +0800
@@ -2121,7 +2121,7 @@
         }
 
         # random icon button - hidden for non-JS
-        $ret .= "<button class='ljhidden' id='randomicon'>" . BML::ml('/talkpost.bml.userpic.random2') ."</button>";
+        $ret .= "<input type='button' class='ljhidden' id='randomicon' value='" . BML::ml('/talkpost.bml.userpic.random2') . "'/>" ;
 
         $ret .= LJ::help_icon_html("userpics", " ");
     }
--------------------------------------------------------------------------------


(2 comments) - (Post a new comment)
(Flat) (Top-level comments only)

ninetydegrees: Drawing: a girl's pale face, with a large yellow and green stripe over her right eye. (stripe), Icon by <user name="artsyicons" site="livejournal.com">, artwork by Blastmilk & Mijn Schatje

[personal profile] ninetydegrees
2012-01-25 05:02 pm UTC (link)
Hadn't realized until today how much I loved this. Not because I'm actually using the button but because Quick Reply looks so much neater now. *bg* Thanks!

(Reply to this)  (Thread


fu: Close-up of Fu, bringing a scoop of water to her mouth (fu)

[staff profile] fu
2012-01-25 05:04 pm UTC (link)
Hee you're welcome!

(Reply to this)  (Thread from start)  (Parent



(2 comments) - (Post a new comment)
(Flat) (Top-level comments only)