Index: trunk/extensions/UsabilityInitiative/Vector/Modules/FooterCleanup/FooterCleanup.js |
— | — | @@ -17,14 +17,24 @@ |
18 | 18 | .change( function() { |
19 | 19 | if( $j( this ).val().length == 0 ){ |
20 | 20 | $j( this ) |
21 | | - .val( $j( this ).data( 'hint' ) ) |
22 | | - .addClass( 'inline-hint' ); |
| 21 | + .addClass( 'inline-hint' ) |
| 22 | + .val( $j( this ).data( 'hint' ) ); |
| 23 | + |
23 | 24 | } else { |
24 | 25 | $j( this ).removeClass( 'inline-hint' ); |
25 | 26 | } } ) |
| 27 | + .focus( function() { |
| 28 | + if( $j( this ).val() == $j( this ).data( 'hint' ) ) { |
| 29 | + $j( this ) |
| 30 | + .removeClass( 'inline-hint' ) |
| 31 | + .val( "" ); |
| 32 | + } |
| 33 | + }) |
| 34 | + .blur( function() { $j( this ).trigger( 'change' ); } ) |
26 | 35 | .trigger( 'change' ); |
27 | | - $j( '#wpSummary, .editCheckboxes' ) |
28 | | - .wrap( '<div id="editpage-summary-fields"></div>'); |
| 36 | + $j( '#wpSummary' ) |
| 37 | + .add( '.editCheckboxes' ) |
| 38 | + .wrapAll( '<div id="editpage-summary-fields"></div>'); |
29 | 39 | |
30 | 40 | $j( '#editpage-specialchars' ).remove(); |
31 | 41 | |
— | — | @@ -47,5 +57,15 @@ |
48 | 58 | .find( 'ul' ) |
49 | 59 | .slideToggle( 'fast' ); |
50 | 60 | return false; |
51 | | - }) |
| 61 | + }) |
| 62 | + .trigger( 'click' ); |
| 63 | + $j( '#wpPreview' ) |
| 64 | + .remove(); |
| 65 | + $j( '#wpDiff' ) |
| 66 | + .remove(); |
| 67 | + $j( '#mw-editform-cancel' ) |
| 68 | + .remove() |
| 69 | + .appendTo('.editButtons'); |
| 70 | + $j( '.editHelp' ) |
| 71 | + .remove(); |
52 | 72 | } ); |
Index: trunk/extensions/UsabilityInitiative/css/vector.footerCleanup.css |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | background-color: #F3F3F3; |
5 | 5 | border: 1px solid silver; |
6 | 6 | border-top: none; |
7 | | - padding: 20px; |
| 7 | + padding: 20px 170px 20px 170px; |
8 | 8 | margin-right: -2px; |
9 | 9 | } |
10 | 10 | |
— | — | @@ -37,3 +37,51 @@ |
38 | 38 | margin-bottom: 0px; |
39 | 39 | } |
40 | 40 | |
| 41 | +.editOptions { |
| 42 | + width: 100%; |
| 43 | +} |
| 44 | +#wpSummaryLabel, |
| 45 | +#editpage-summary-fields, |
| 46 | +.editButtons { |
| 47 | + float: left; |
| 48 | +} |
| 49 | +#wpSummaryLabel{ |
| 50 | + width: 150px; |
| 51 | + margin-left: -150px; |
| 52 | + position: relative; |
| 53 | +} |
| 54 | +#editpage-summary-fields { |
| 55 | + width: 100%; |
| 56 | + margin-right: -100%; |
| 57 | +} |
| 58 | +#editpage-summary-fields input.mw-summary { |
| 59 | + width: 95%; |
| 60 | +} |
| 61 | +.editButtons { |
| 62 | + width: 150px; |
| 63 | + margin-right: -150px; |
| 64 | + float: right; |
| 65 | + position: relative; |
| 66 | +} |
| 67 | +#editpage-copywarn { |
| 68 | + margin-left: -150px; |
| 69 | + margin-right: 10px; |
| 70 | +} |
| 71 | +/* Why don't we use self clearing floats anywhere? */ |
| 72 | + |
| 73 | +.editOptions:after { |
| 74 | + content: "."; |
| 75 | + display: block; |
| 76 | + height: 0; |
| 77 | + clear: both; |
| 78 | + visibility: hidden; |
| 79 | +} |
| 80 | +.editOptions { |
| 81 | + display: inline-block; |
| 82 | +} |
| 83 | +* html .editOptions { |
| 84 | + height: 1%; |
| 85 | +} |
| 86 | +.editOptions { |
| 87 | + display:block; |
| 88 | +} |
\ No newline at end of file |