Removed unused scripts.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 20 Sep 2010 23:34:49 +0000 (23:34 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 20 Sep 2010 23:34:49 +0000 (23:34 +0000)
resources/mediawiki.views/mediawiki.views.diff.js [deleted file]
resources/mediawiki.views/mediawiki.views.install.js [deleted file]

diff --git a/resources/mediawiki.views/mediawiki.views.diff.js b/resources/mediawiki.views/mediawiki.views.diff.js
deleted file mode 100644 (file)
index ab1cc3b..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Diff-view progressive enhancement (ported from skins/common/diff.js)
- * 
- * Fixes an overflow bug in old versions of Firefox
- */
-
-( function( $, mw ) {
-
-/* Initialization */
-
-$( document ).ready( function() {
-       /*
-        * Workaround for overflow bug in Mozilla 1.1 and earlier, where scrolling <div>s in <td> cells collapse their
-        * height to a single line.
-        * 
-        * Known to be fixed in 1.2.1 (Gecko 20021130), but the CSS hacks I've tried with overflow-x disable the scrolling
-        * all the way until Mozilla 1.8 / FF 1.5 and break Opera as well.
-        * 
-        * So... we check for reaaaally old Gecko and hack in an alternate rule to let the wide cells spill instead of
-        * scrolling them. Not ideal as it won't work if JS is disabled, of course.
-        */
-       if ( window.navigator && window.navigator.product == 'Gecko' && window.navigator.productSub < '20021130' ) {
-               document.styleSheets[document.styleSheets.length - 1].insertRule(
-                       'table.diff td div { overflow: visible; }',
-                       document.styleSheets[document.styleSheets.length - 1].cssRules.length
-               );
-       }
-} );
-
-} )( jQuery, mediaWiki );
\ No newline at end of file
diff --git a/resources/mediawiki.views/mediawiki.views.install.js b/resources/mediawiki.views/mediawiki.views.install.js
deleted file mode 100644 (file)
index c13373f..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Web-installer progressive enhancement (ported from skins/common/config.js)
- * 
- * Makes elements in the configuration form interactive and hides portions of the form when not in-use
- */
-
-( function( $, mw ) {
-
-/* Initialization */
-
-$( document ).ready( function() {
-       // Show/hide code for help text
-       $( '.config-show-help a' ).click( function() {
-               $(this).parent().siblings( '.config-help-message' ).show( 'slow' );
-               $(this).parent().siblings( '.config-hide-help' ).show();
-               $(this).parent().hide();
-               return false;
-       } );
-       $( '.config-hide-help a' ).click( function() {
-               $(this).parent().siblings( '.config-help-message' ).hide( 'slow' );
-               $(this).parent().siblings( '.config-show-help' ).show();
-               $(this).parent().hide();
-               return false;
-       } );    
-       // Show/hide code for DB-specific options
-       // FIXME: Do we want slow, fast, or even non-animated (instantaneous) showing/hiding here?
-       $( '.dbRadio' ).each( function() { $( '#' + $(this).attr( 'rel' ) ).hide(); } );
-       $( '#' + $( '.dbRadio:checked' ).attr( 'rel' ) ).show();
-       $( '.dbRadio' ).click( function() {
-               var $checked = $( '.dbRadio:checked' );
-               var $wrapper = $( '#' + $checked.attr( 'rel' ) );
-               if ( !$wrapper.is( ':visible' ) ) {
-                       $( '.dbWrapper' ).hide( 'slow' );
-                       $wrapper.show( 'slow' );
-               }
-       } );    
-       // Scroll to the bottom of upgrade log
-       $( "#config-update-log" ).each( function() { this.scrollTop = this.scrollHeight; } );
-       // Show/hide Creative Commons thingy
-       $( '.licenseRadio' ).click( function() {
-               var $wrapper = $( '#config-cc-wrapper' );
-               if ( $( '#config__LicenseCode_cc-choose' ).is( ':checked' ) ) {
-                       $wrapper.show( 'slow' );
-               } else {
-                       $wrapper.hide( 'slow' );
-               }
-       } );
-       // Show/hide random stuff (email, upload)
-       $( '.showHideRadio' ).click( function() {
-               var $wrapper = $( '#' + $(this).attr( 'rel' ) );
-               if ( $(this).is( ':checked' ) ) {
-                       $wrapper.show( 'slow' );
-               } else {
-                       $wrapper.hide( 'slow' );
-               }
-       } );
-       $( '.hideShowRadio' ).click( function() {
-               var $wrapper = $( '#' + $(this).attr( 'rel' ) );
-               if ( $(this).is( ':checked' ) ) {
-                       $wrapper.hide( 'slow' );
-               } else {
-                       $wrapper.show( 'slow' );
-               }
-       } );
-       // Enable/disable "other" textboxes
-       $( '.enableForOther' ).click( function() {
-               var $textbox = $( '#' + $(this).attr( 'rel' ) );
-               if ( $(this).val() == 'other' ) { // FIXME: Ugh, this is ugly
-                       $textbox.removeAttr( 'disabled' );
-               } else {
-                       $textbox.attr( 'disabled', 'disabled' );
-               }
-       } );
-       // Synchronize radio button label for sitename with textbox
-       $label = $( 'label[for=config__NamespaceType_site-name]' );
-       labelText = $label.text();
-       $label.text( labelText.replace( '$1', '' ) );
-       $( '#config_wgSitename' ).bind( 'keyup change', syncText ).each( syncText );
-       function syncText() {
-               var value = $(this).val()
-                       .replace( /[\[\]\{\}|#<>%+? ]/g, '_' )
-                       .replace( /&/, '&amp;' )
-                       .replace( /__+/g, '_' )
-                       .replace( /^_+/, '' )
-                       .replace( /_+$/, '' );
-               value = value.substr( 0, 1 ).toUpperCase() + value.substr( 1 );
-               $label.text( labelText.replace( '$1', value ) );
-       }
-       // Show/Hide memcached servers when needed
-       $( "input[name$='config_wgMainCacheType']" ).change( function() {
-               var $memc = $( "#config-memcachewrapper" );
-               if ( $( "input[name$='config_wgMainCacheType']:checked" ).val() == 'memcached' ) {
-                       $memc.show( 'slow' );
-               } else {
-                       $memc.hide( 'slow' );
-               }
-       } );
-} );
-
-} )( jQuery, mediaWiki );
\ No newline at end of file