http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60959
Revision: 60959 Author: adam Date: 2010-01-12 05:04:20 +0000 (Tue, 12 Jan 2010) Log Message: ----------- Further work on the footer cleanup demoing Modified Paths: -------------- trunk/extensions/UsabilityInitiative/Vector/Modules/FooterCleanup/FooterCleanup.js trunk/extensions/UsabilityInitiative/css/vector.footerCleanup.css Modified: trunk/extensions/UsabilityInitiative/Vector/Modules/FooterCleanup/FooterCleanup.js =================================================================== --- trunk/extensions/UsabilityInitiative/Vector/Modules/FooterCleanup/FooterCleanup.js 2010-01-12 01:05:37 UTC (rev 60958) +++ trunk/extensions/UsabilityInitiative/Vector/Modules/FooterCleanup/FooterCleanup.js 2010-01-12 05:04:20 UTC (rev 60959) @@ -17,14 +17,24 @@ .change( function() { if( $j( this ).val().length == 0 ){ $j( this ) - .val( $j( this ).data( 'hint' ) ) - .addClass( 'inline-hint' ); + .addClass( 'inline-hint' ) + .val( $j( this ).data( 'hint' ) ); + } else { $j( this ).removeClass( 'inline-hint' ); } } ) + .focus( function() { + if( $j( this ).val() == $j( this ).data( 'hint' ) ) { + $j( this ) + .removeClass( 'inline-hint' ) + .val( "" ); + } + }) + .blur( function() { $j( this ).trigger( 'change' ); } ) .trigger( 'change' ); - $j( '#wpSummary, .editCheckboxes' ) - .wrap( '<div id="editpage-summary-fields"></div>'); + $j( '#wpSummary' ) + .add( '.editCheckboxes' ) + .wrapAll( '<div id="editpage-summary-fields"></div>'); $j( '#editpage-specialchars' ).remove(); @@ -47,5 +57,15 @@ .find( 'ul' ) .slideToggle( 'fast' ); return false; - }) + }) + .trigger( 'click' ); + $j( '#wpPreview' ) + .remove(); + $j( '#wpDiff' ) + .remove(); + $j( '#mw-editform-cancel' ) + .remove() + .appendTo('.editButtons'); + $j( '.editHelp' ) + .remove(); } ); Modified: trunk/extensions/UsabilityInitiative/css/vector.footerCleanup.css =================================================================== --- trunk/extensions/UsabilityInitiative/css/vector.footerCleanup.css 2010-01-12 01:05:37 UTC (rev 60958) +++ trunk/extensions/UsabilityInitiative/css/vector.footerCleanup.css 2010-01-12 05:04:20 UTC (rev 60959) @@ -3,7 +3,7 @@ background-color: #F3F3F3; border: 1px solid silver; border-top: none; - padding: 20px; + padding: 20px 170px 20px 170px; margin-right: -2px; } @@ -37,3 +37,51 @@ margin-bottom: 0px; } +.editOptions { + width: 100%; +} +#wpSummaryLabel, +#editpage-summary-fields, +.editButtons { + float: left; +} +#wpSummaryLabel{ + width: 150px; + margin-left: -150px; + position: relative; +} +#editpage-summary-fields { + width: 100%; + margin-right: -100%; +} +#editpage-summary-fields input.mw-summary { + width: 95%; +} +.editButtons { + width: 150px; + margin-right: -150px; + float: right; + position: relative; +} +#editpage-copywarn { + margin-left: -150px; + margin-right: 10px; +} +/* Why don't we use self clearing floats anywhere? */ + +.editOptions:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +.editOptions { + display: inline-block; +} +* html .editOptions { + height: 1%; +} +.editOptions { + display:block; +} \ No newline at end of file _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs