Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dudle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ def initialize(params = {:revision => nil, :title => nil, :hide_lang_chooser =>
@user_css ||= $conf.default_css
end

@html.add_script('
function trClick(object)
{
object.childNodes[1].childNodes[1].checked = true;
}
')

if $cgi.user_agent =~ /.*MSIE [567]\..*/
css = [@user_css]
else
Expand Down
2 changes: 1 addition & 1 deletion poll.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def edituser_to_html
ret += "<td class='checkboxes'><table class='checkboxes'>"
[[YES, YESVAL],[NO, NOVAL],[MAYBE, MAYBEVAL]].each{|valhuman, valbinary|
ret += <<TR
<tr class='input-#{valbinary}'>
<tr class='input-#{valbinary}' onclick=\"trClick(this);\">
<td class='input-radio'>
<input type='radio'
value='#{valbinary}'
Expand Down