WordPress.org

Making WordPress.org

Changeset 5691


Ignore:
Timestamp:
07/18/2017 05:33:33 PM (2 years ago)
Author:
coffee2code
Message:

Plugin Directory: Remove obsolete JS code related to removed "Tested Up To" metabox.

Should have been done as part of [4212].

Props SergeyBiryukov.
Fixes #2941.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

    r5576 r5691  
    111111                case 'post.php':
    112112                    wp_enqueue_style( 'plugin-admin-post-css', plugins_url( 'css/edit-form.css', Plugin_Directory\PLUGIN_FILE ), array( 'edit' ), 4 );
    113                     wp_enqueue_script( 'plugin-admin-post-js', plugins_url( 'js/edit-form.js', Plugin_Directory\PLUGIN_FILE ), array( 'wp-util', 'wp-lists' ), 4 );
     113                    wp_enqueue_script( 'plugin-admin-post-js', plugins_url( 'js/edit-form.js', Plugin_Directory\PLUGIN_FILE ), array( 'wp-util', 'wp-lists' ), 5 );
    114114                    wp_localize_script( 'plugin-admin-post-js', 'pluginDirectory', array(
    115115                        'approvePluginAYS'   => __( 'Are you sure you want to approve this plugin?', 'wporg-plugins' ),
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/js/edit-form.js

    r5573 r5691  
    55( function( $, wp, pluginDirectory ) {
    66    var PluginEdit = {
    7         $testedWith: {},
    87
    98        ready: function() {
    10             PluginEdit.$testedWith   = $( '#tested-with-select' );
    11 
    12             $( '#submitdiv' )
    13                 .on( 'click', '.edit-tested-with',     PluginEdit.editTestedWith )
    14                 .on( 'click', '.save-tested-with',     PluginEdit.updateTestedWith )
    15                 .on( 'click', '.cancel-tested-with',   PluginEdit.cancelTestedWith )
    16                 .on( 'click', '.set-plugin-status',    PluginEdit.setPluginStatus );
     9            $( '#submitdiv' ).on( 'click', '.set-plugin-status', PluginEdit.setPluginStatus );
    1710
    1811            _.each( $( '#post-body' ).find( '.comments-box' ), PluginEdit.loadComments );
     
    3831
    3932            $( '#contact-author' ).appendTo( '#plugin-review .inside' );
    40         },
    41 
    42         editTestedWith: function() {
    43             if ( PluginEdit.$testedWith.is( ':hidden' ) ) {
    44                 PluginEdit.$testedWith.slideDown( 'fast', function() {
    45                     $( 'select', PluginEdit.$testedWith ).focus();
    46                 } );
    47                 $( this ).hide();
    48             }
    49         },
    50 
    51         updateTestedWith: function() {
    52             PluginEdit.$testedWith.slideUp( 'fast' ).siblings( 'button.edit-tested-with' ).show().focus();
    53             $( '#tested-with-display' ).text( $( 'option:selected', PluginEdit.$testedWith ).text() );
    54         },
    55 
    56         cancelTestedWith: function() {
    57             $( '#tested-with' ).val( $( '#hidden-tested-with' ).val() );
    58             PluginEdit.updateTestedWith();
    5933        },
    6034
     
    136110            }
    137111        }
     112
    138113    };
    139114
Note: See TracChangeset for help on using the changeset viewer.