To mimic the biggest diff-er out there: http://en.wikipedia.org/w/index.php?title=Drupal&action=history

We should add some jQuery to hide those radios for diffs that technically shouldn't be allowed.

CommentFileSizeAuthor
#6 diff-global-settings.png18.76 KBalan d.

Comments

moshe weitzman’s picture

good suggestion. patches welcome.

realityloop’s picture

Version: 5.x-2.x-dev » 7.x-2.x-dev

This is still a good idea

alan d.’s picture

I wonder if #states can handle greater than and less than comparisons. If so, this would actually be fairly easy, I think...

alan d.’s picture

To be extendable, this needs to handle two types of toggles:

1) Wiki like as discussed
2) All shown bar the corresponding selected radio

1  ( ) ( )
2  (*) 
3  ( ) ( )
4      (*)
5  ( ) ( )
6  ( ) ( )

Use case
Webform based submission comparisons - these are linear in time, but enforcing this makes no sense.

[edit] And this one is super trivial using #states

alan d.’s picture

Actually, lots of radio #states issues... #994360: #states cannot check/uncheck checkboxes elements is just one of 3 or 4 I found. Example code is there for this, (if the states worked)

alan d.’s picture

StatusFileSize
new18.76 KB

Fairly easy port of the wiki code with the two options. The global config has the settings for this (None, Simple exclusion & Linear restrictions options).

I can not patch against 7.x-2.x now, so I either really need git access to push out a 7.x-3.x branch or you can find this in the sandbox project (Diff developmental version 7.x-2.x branch)

alan d.’s picture

Version: 7.x-2.x-dev » 7.x-3.0-alpha1
Category: task » feature
Status: Active » Fixed

This should be resolved with the new branch, 7.x-3.0-alpha1 or 7.x-3.0-dev.

This is disabled by default. See the Diff global administration settings page to enable the options.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.