WordPress.org

Plugin Directory

Changeset 337649


Ignore:
Timestamp:
01/27/11 00:44:17 (3 years ago)
Author:
JustinSainton
Message:

Image fix for categories, a little bit of debugging code, and some sort fixes.

Location:
wp-e-commerce/branches/3.8-development/wpsc-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/css/admin.css

    r337351 r337649  
    17161716    visibility: hidden; 
    17171717} 
     1718table.tags th#image { 
     1719    width:60px; 
     1720} 
  • wp-e-commerce/branches/3.8-development/wpsc-admin/includes/save-data.functions.php

    r337618 r337649  
    5555function wpsc_custom_category_columns( $columns ) { 
    5656    // Doing it this funny way to ensure that image stays in far left, even if other items are added via plugin. 
    57  
     57    unset( $columns["cb"] ); 
     58     
    5859    $custom_array = array( 
     60        'cb' => '<input type="checkbox">', 
    5961        'image' => __( 'Image' ) 
    6062    ); 
     
    592594    global $wpdb; 
    593595    if( !empty( $_POST ) ) { 
     596            print_r($_POST); 
    594597        /* Image Processing Code*/ 
    595598        if(($_FILES['image'] != null) && preg_match("/\.(gif|jp(e)*g|png){1}$/i",$_FILES['image']['name'])) { 
  • wp-e-commerce/branches/3.8-development/wpsc-admin/js/admin.js

    r337636 r337649  
    305305          jQuery('form#addtag').attr('enctype', 'multipart/form-data'); 
    306306      } 
    307  
    308307    //Added for inline editing capabilities 
    309308    jQuery('#wpsc_product_list a.editinline').live('click', function() { 
     
    378377        if( wpsc_adminL10n.dragndrop_set == "true" && typenow == "wpsc-product" ) { 
    379378            // this makes the product list table sortable 
    380             jQuery('table.widefat').sortable({ 
     379            jQuery('table.widefat:not(.tags)').sortable({ 
    381380        update: function(event, ui) { 
    382381            category_id = jQuery('select#wpsc_product_category option:selected').val(); 
     
    387386        items: 'tr', 
    388387        axis: 'y', 
    389         containment: 'table.widefat', 
     388        containment: 'table.widefat tbody', 
    390389        placeholder: 'product-placeholder', 
    391390                cursor: 'move', 
Note: See TracChangeset for help on using the changeset viewer.