Patch #15982
openInconsitent wiki history functionaility
0%
Description
Replace this source:trunk/app/views/wiki/history.html.erb#L25 line:<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
with:<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}", :onclick => "$('#cb-#{line_num-1}').attr('checked', true);") if show_diff && (line_num > 1) %></td>
This way the click behaviour on the second checkbox row (to) would be the same as on the first (from).
Best regards,
Daniel
      
      Updated by Daniel Felix almost 12 years ago
      
    
    Sorry for the wrong patch. This should be the right thing.
<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if(#{line_num-1} >= $('#cb-#{line_num-1}').attr('id').replace('#cb-','') ){$('#cb-#{line_num-1}').attr('checked', true);}") if show_diff && (line_num > 1) %></td>
This way, the from box is just raised if the from value is older than the to value.
      
      Updated by Jean-Philippe Lang over 11 years ago
      
    
    Could you provide a diff for this?