trailing whitespace fixup
authorMark A. Hershberger <mah@users.mediawiki.org>
Tue, 15 Feb 2011 20:55:54 +0000 (20:55 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Tue, 15 Feb 2011 20:55:54 +0000 (20:55 +0000)
skins/common/preview.js

index f559994..e2a7cd5 100644 (file)
@@ -6,31 +6,31 @@ window.doLivePreview = function( e ) {
        e.preventDefault();
 
        $( mw ).trigger( 'LivePreviewPrepare' );
-       
+
        var postData = $('#editform').formToArray();
        postData.push( { 'name' : 'wpPreview', 'value' : '1' } );
-       
+
        // Hide active diff, used templates, old preview if shown
        var copyElements = ['#wikiPreview', '.templatesUsed', '.hiddencats',
                                                '#catlinks'];
        var copySelector = copyElements.join(',');
 
        $.each( copyElements, function(k,v) { $(v).fadeOut('fast'); } );
-       
+
        // Display a loading graphic
        var loadSpinner = $('<div class="mw-ajax-loader"/>');
        $('#wikiPreview').before( loadSpinner );
-       
+
        var page = $('<div/>');
        var target = $('#editform').attr('action');
-       
+
        if ( !target ) {
                target = window.location.href;
        }
-       
+
        page.load( target + ' ' + copySelector, postData,
                function() {
-                       
+
                        for( var i=0; i<copyElements.length; ++i) {
                                // For all the specified elements, find the elements in the loaded page
                                //  and the real page, empty the element in the real page, and fill it
@@ -40,12 +40,12 @@ window.doLivePreview = function( e ) {
                                var newClasses = page.find( copyElements[i] ).attr('class');
                                $(copyElements[i]).attr( 'class', newClasses );
                        }
-                       
+
                        $.each( copyElements, function(k,v) {
                                // Don't belligerently show elements that are supposed to be hidden
                                $(v).fadeIn( 'fast', function() { $(this).css('display', ''); } );
                        } );
-                       
+
                        loadSpinner.remove();
 
                        $( mw ).trigger( 'LivePreviewDone', [copyElements] );