WordPress.org

Make WordPress Core

Changeset 2747


Ignore:
Timestamp:
08/03/2005 01:56:02 AM (13 years ago)
Author:
matt
Message:

Better tab order, indenting

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r2746 r2747  
    88?>
    99<script type="text/javascript">
    10     //<![CDATA[
    11         function GetElementsWithClassName(elementName, className) {
    12            var allElements = document.getElementsByTagName(elementName);
    13            var elemColl = new Array();
    14            for (i = 0; i < allElements.length; i++) {
    15                if (allElements[i].className == className) {
    16                    elemColl[elemColl.length] = allElements[i];
    17                }
    18            }
    19            return elemColl;
    20         }
    21        
    22         function upit() {
    23            var inputColl = GetElementsWithClassName('input', 'tog');
    24            var structure = document.getElementById('permalink_structure');
    25            var inputs = '';
    26            for (i = 0; i < inputColl.length; i++) {
    27                if ( inputColl[i].checked && inputColl[i].value != '') {
    28                     inputs += inputColl[i].value + ' ';
    29                     }
    30                }
    31            inputs = inputs.substr(0,inputs.length - 1);
    32             if ( 'custom' != inputs )
    33                structure.value = inputs;
    34            }
    35        
    36         function blurry() {
    37            if (!document.getElementById) return;
    38        
    39            var aInputs = document.getElementsByTagName('input');
    40        
    41            for (var i = 0; i < aInputs.length; i++) {       
    42                aInputs[i].onclick = aInputs[i].onkeyup = upit;
    43            }
    44         }
    45        
    46         window.onload = blurry;
    47     //]]>
    48     </script>
     10//<![CDATA[
     11function GetElementsWithClassName(elementName, className) {
     12var allElements = document.getElementsByTagName(elementName);
     13var elemColl = new Array();
     14for (i = 0; i < allElements.length; i++) {
     15if (allElements[i].className == className) {
     16elemColl[elemColl.length] = allElements[i];
     17}
     18}
     19return elemColl;
     20}
     21
     22function upit() {
     23var inputColl = GetElementsWithClassName('input', 'tog');
     24var structure = document.getElementById('permalink_structure');
     25var inputs = '';
     26for (i = 0; i < inputColl.length; i++) {
     27if ( inputColl[i].checked && inputColl[i].value != '') {
     28inputs += inputColl[i].value + ' ';
     29}
     30}
     31inputs = inputs.substr(0,inputs.length - 1);
     32if ( 'custom' != inputs )
     33structure.value = inputs;
     34}
     35
     36function blurry() {
     37if (!document.getElementById) return;
     38
     39var aInputs = document.getElementsByTagName('input');
     40
     41for (var i = 0; i < aInputs.length; i++) {     
     42aInputs[i].onclick = aInputs[i].onkeyup = upit;
     43}
     44}
     45
     46window.onload = blurry;
     47//]]>
     48</script>
    4949<?php
    5050}
  • trunk/wp-login.php

    r2736 r2747  
    229229<p><label><?php _e('Password:') ?><br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label></p>
    230230<p>
    231   <label><input name="rememberme" type="checkbox" id="rememberme" value="forever" />
     231  <label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
    232232  <?php _e('Remember me'); ?></label></p>
    233233<p class="submit">
    234     <input type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="3" />
     234    <input type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="4" />
    235235    <input type="hidden" name="redirect_to" value="<?php echo $redirect_to; ?>" />
    236236</p>
Note: See TracChangeset for help on using the changeset viewer.