Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#23897 closed defect (bug) (fixed)

Revisions UI: RTL support

Reported by: ocean90's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Revisions Keywords: has-patch
Focuses: Cc:

Description

Attachments (11)

23897.diff (743 bytes) - added by DrewAPicture 12 years ago.
First-pass.
23897.2.diff (3.6 KB) - added by DrewAPicture 12 years ago.
adds some context
23897.3.patch (1.5 KB) - added by ocean90 12 years ago.
23897.3.diff (2.7 KB) - added by adamsilverstein 12 years ago.
reverses direction for RTL in single handle mode
23897.4.diff (12.7 KB) - added by adamsilverstein 12 years ago.
completes RTL revisions functionality, add inline docs
23897.5.diff (13.2 KB) - added by adamsilverstein 12 years ago.
complete RTL support
23897.6.diff (13.1 KB) - added by adamsilverstein 12 years ago.
update against trunk
23897.7.diff (13.1 KB) - added by adamsilverstein 12 years ago.
update against trunk
23897.8.diff (13.3 KB) - added by adamsilverstein 12 years ago.
inline doc updates
23897.9.diff (17.8 KB) - added by adamsilverstein 12 years ago.
add/complete css
23897.10.diff (18.6 KB) - added by ocean90 12 years ago.
Swap next/prev functionality

Download all attachments as: .zip

Change History (26)

@DrewAPicture
12 years ago

First-pass.

#1 @DrewAPicture
12 years ago

  • Keywords has-patch added; needs-patch removed

23897.diff is a first pass on fixing floats. I didn't touch the translatable strings yet. With this patch:

http://f.cl.ly/items/3w113R2P0D0y1Z1d2x1J/Screen%20Shot%202013-03-29%20at%206.18.30%20PM.png

Also, I'd argue that it's not worth it/possible/realistic to change directions in the UI in terms of Previous/Next in the comparison view.

@DrewAPicture
12 years ago

adds some context

#2 follow-up: @DrewAPicture
12 years ago

23897.2.diff takes a stab at adding some context, also combined two strings into one.

EDIT: Disregard this patch and carry on from 23897.diff per comment:4

On a side note we should really fix the id selectors and class names in revision.php to bring them more in line with recommendations in the CSS Coding Standards. Selectors like removedandadded, backbonerevisionsinteract, etc aren't going to cut it.

Last edited 12 years ago by DrewAPicture (previous) (diff)

#3 @DrewAPicture
12 years ago

  • Cc xoodrew@… added

#4 @ocean90
12 years ago

The string will be handled in #23901. So use this ticket only for the CSS parts.

On a side note we should really fix the id selectors and class names in revision.php

Definitely! But after the main things works. And in a separated ticket.

#5 in reply to: ↑ 2 @SergeyBiryukov
12 years ago

Replying to DrewAPicture:

On a side note we should really fix the id selectors and class names in revision.php

Also mentioned in ticket:23497:139.

@ocean90
12 years ago

#6 follow-up: @ocean90
12 years ago

23897.3.patch includes the CSS part. Still needs the slider swap, which needs to be done in JS.

#7 in reply to: ↑ 6 @adamsilverstein
12 years ago

  • Cc adamsilverstein@… added

Replying to ocean90:

23897.3.patch includes the CSS part. Still needs the slider swap, which needs to be done in JS.

do you mean reversing the order of the slider ticks? how can JS determine if using RTL?

#8 @adamsilverstein
12 years ago

23897.3.diff​

  • includes previous css updates
  • reverses direction of revisions in single handle mode. two handle mode was more complicated so i left it out for now, mulling, single handled mode was a simple solution

@adamsilverstein
12 years ago

reverses direction for RTL in single handle mode

#9 @adamsilverstein
12 years ago

  • Keywords dev-feedback added

23897.4.diff:

  • completes RTL functionality in two handled mode
  • adds additional inline documentation

two handle mode was a little trickier - in addition to reversing the handles, the values from the handle needed to be reversed; finally some of the logic when switching from single to two handled mode needed updating. in my testing i now see the same data results in RTL or non RTL mode.

@adamsilverstein
12 years ago

completes RTL revisions functionality, add inline docs

@adamsilverstein
12 years ago

complete RTL support

#10 @adamsilverstein
12 years ago

23897.5.diff -

  • completes RTL support
  • ajax-actions updates so only required diffs generated including in RTL mode

#11 @ocean90
12 years ago

  • Keywords needs-refresh added; dev-feedback removed

@adamsilverstein
12 years ago

update against trunk

@adamsilverstein
12 years ago

update against trunk

#12 @DrewAPicture
12 years ago

  • Keywords needs-refresh removed

@adamsilverstein
12 years ago

inline doc updates

@adamsilverstein
12 years ago

add/complete css

#13 follow-up: @ocean90
12 years ago

The text on the next/prev buttons needs to be swapped.

@ocean90
12 years ago

Swap next/prev functionality

#14 in reply to: ↑ 13 @adamsilverstein
12 years ago

Replying to ocean90:

The text on the next/prev buttons needs to be swapped.

23897.10.diff​ looks good

#15 @ocean90
12 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 24205:

Revisions UI: RTL support. (And inline docs.)

props DrewAPicture, adamsilverstein. fixes #23897.

Note: See TracTickets for help on using tickets.