WordPress.org

Plugin Directory

Changeset 356949


Ignore:
Timestamp:
03/07/11 21:40:52 (3 years ago)
Author:
ozh
Message:

1.4.9
Removed: JavaScript bits on the options page, causing passwords to reset
Removed: Unneeded JSON class

Location:
yourls-wordpress-to-twitter/trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • yourls-wordpress-to-twitter/trunk/inc/core.php

    r315239 r356949  
    312312function wp_ozh_yourls_remote_json( $url ) { 
    313313    $input = wp_ozh_yourls_fetch_url( $url ); 
    314     if ( !class_exists( 'Services_JSON' ) ) 
    315         require_once(dirname(__FILE__).'/pear_json.php'); 
    316     $json = new Services_JSON(); 
    317     $obj = $json->decode($input); 
     314    $obj = json_decode($input); 
    318315    return $obj; 
    319316    // TODO: some error handling ? 
  • yourls-wordpress-to-twitter/trunk/inc/options.php

    r298626 r356949  
    430430    </p> 
    431431     
    432     <p><small><span class="mandatory">*</span> denotes a mandatory field. Click on the <img src="<?php echo $plugin_url; ?>/res/expand.png" /> to expand a setting section. </small></p> 
     432    <p><small><span class="mandatory">*</span> denotes a mandatory field. A green check<img src="<?php echo $plugin_url; ?>/res/accept.png" /> indicates the section main parameters are <em>filled</em>, not necessarily <em>correct</em>. Click on the <img src="<?php echo $plugin_url; ?>/res/expand.png" /> to expand a setting section. </small></p> 
    433433 
    434434    </form> 
  • yourls-wordpress-to-twitter/trunk/plugin.php

    r315241 r356949  
    66Author: Ozh 
    77Author URI: http:/ozh.org/ 
    8 Version: 1.4.8 
     8Version: 1.4.9 
    99*/ 
    1010 
     
    4646 * 1.4.7:     Added: More actions and filters 
    4747 * 1.4.8:     Added: More actions and filters 
     48 * 1.4.9:     Removed: JavaScript bits on the options page, causing passwords to reset 
     49              Removed: Unneeded JSON class 
    4850 */ 
    4951 
  • yourls-wordpress-to-twitter/trunk/res/yourls.js

    r298626 r356949  
    4343    })   
    4444     
    45     // Password reveal: create the checkboxes 
    46     $('input:password').each(function(){ 
    47         var target = $(this).attr('id'); 
    48         $(this).after('&nbsp;<label><input type="checkbox" class="y_reveal" id="y_reveal_'+target+'"/> Show letters</label>'); 
    49         $('#y_reveal_'+target).data('target', target) 
    50     }); 
    51      
    52     // Password reveal: checkboxes behavior 
    53     $('.y_reveal').change(function(){ 
    54         var target = $(this).data('target'); 
    55         password_toggle(target, $(this).attr('checked')); 
    56         return; 
    57     }); 
    58      
    5945    // Twitter sample copy 
    6046    $('.tw_msg_sample').click(function(){ 
    6147        $('#tw_msg').val($(this).html()); 
    62     }); 
    63      
    64     // Toggle display between password and text fields 
    65     function password_toggle(target, display) { 
    66         if (display) { 
    67             var pw = $('#'+target).val(); 
    68             var size = $('#'+target).attr('size'); 
    69             $('#'+target).hide().after('<input type="text" name="'+target+'_text__" value="'+pw+'" size="'+size+'" id="'+target+'_text__"/>'); 
    70         } else { 
    71             var pw = $('#'+target+'_text__').val(); 
    72             $('#'+target).show().val(pw); 
    73             $('#'+target+'_text__').remove(); 
    74         } 
    75         // No, you can't change $('#tw_passwd').attr('type') on the fly, in case you're wondering 
    76     } 
    77      
    78     // Reset all password fields (make them passwords, not texts) 
    79     function password_hide_all() { 
    80         $('input:password').each(function(){ 
    81             password_toggle( $(this).attr('id'), false ); 
    82         }); 
    83     } 
    84      
    85     // On form submit, first reset all pwd fields 
    86     $('.y_submit').click(function(){ 
    87         password_hide_all(); 
    8848    }); 
    8949     
Note: See TracChangeset for help on using the changeset viewer.