Project

General

Profile

Actions

Patch #15982

open

Inconsitent wiki history functionaility

Added by Daniel Felix almost 11 years ago. Updated almost 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Daniel Felix almost 11 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.

Actions #2

Updated by Jean-Philippe Lang almost 11 years ago

Could you provide a diff for this?

Actions

Also available in: Atom PDF