Make WordPress Core


Ignore:
Timestamp:
04/17/2009 12:46:53 PM (16 years ago)
Author:
azaozz
Message:

Submit the form when setting items per page option so it's visible straight away

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r10970 r10987  
    33953395?>
    33963396<div id="screen-options-wrap" class="hidden">
    3397     <form id="adv-settings" action="" method="get">
     3397    <form id="adv-settings" action="" method="post">
    33983398    <h5><?php _e('Show on screen') ?></h5>
    33993399    <div class="metabox-prefs">
     
    35603560    $return .= "<div class='screen-options'>\n";
    35613561    if ( !empty($per_page_label) )
    3562         $return .=  "<label for='$option'>$per_page_label</label> <input type='text' class='screen-per-page' name='$option' id='$option' maxlength='3' value='$per_page' />\n";
     3562        $return .= "<label for='$option'>$per_page_label</label> <input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' />\n";
     3563        $return .= "<input type='submit' class='button' value='" . __('Apply') . "' />";
     3564        $return .= "<input type='hidden' name='wp_screen_options[option]' value='$option' />";
    35633565    $return .= "</div>\n";
    35643566    return $return;
Note: See TracChangeset for help on using the changeset viewer.