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.
| Comment | File | Size | Author |
|---|
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.
| Comment | File | Size | Author |
|---|
Comments
Comment #1
moshe weitzman commentedgood suggestion. patches welcome.
Comment #2
realityloop commentedThis is still a good idea
Comment #3
alan d. commentedI wonder if #states can handle greater than and less than comparisons. If so, this would actually be fairly easy, I think...
Comment #4
alan d. commentedTo be extendable, this needs to handle two types of toggles:
1) Wiki like as discussed
2) All shown bar the corresponding selected radio
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
Comment #5
alan d. commentedActually, 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)
Comment #6
alan d. commentedFairly 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)
Comment #7
alan d. commentedThis 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.