WordPress.org

Plugin Directory

Changeset 337941


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

Fixed CSS bug on category page and disabled AJAX - probably the quickest way right now to get images to upload, we can look at other options later.

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

Legend:

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

    r337686 r337941  
    16921692    margin-right:5px; 
    16931693} 
    1694 form#posts-filter { 
     1694body.edit-php form#posts-filter { 
    16951695    min-width:830px; 
    16961696} 
  • wp-e-commerce/branches/3.8-development/wpsc-admin/includes/save-data.functions.php

    r337686 r337941  
    3232 
    3333/** 
    34  * wpsc_display_categories_page, assembles the category page 
     34 * Remove the AJAX response on the categories page.  Necessary for allowing for image upload. 
    3535 * @param nothing 
    3636 * @return nothing 
    3737 */ 
    3838 
     39function wpsc_cat_kill_ajax() { 
     40    global $current_screen; 
     41 
     42    if( $current_screen->id == 'edit-wpsc_product_category' ) { 
     43        wp_deregister_script( 'wp-ajax-response' ); 
     44        wp_deregister_script( 'admin-tags' ); 
     45    } 
     46} 
     47 
     48add_action( 'admin_head', 'wpsc_cat_kill_ajax' ); 
    3949add_filter( 'manage_edit-wpsc_product_category_columns', 'wpsc_custom_category_columns' ); 
    4050add_filter( 'manage_wpsc_product_category_custom_column', 'wpsc_custom_category_column_data', 10, 3); 
    4151add_action( 'wpsc_product_category_add_form_fields', 'wpsc_admin_category_forms_add' ); // After left-col 
    4252add_action( 'wpsc_product_category_edit_form_fields', 'wpsc_admin_category_forms_edit' ); // After left-col 
    43  
    4453add_action( 'created_wpsc_product_category', 'wpsc_save_category_set' ); //After created 
    4554add_action( 'edited_wpsc_product_category', 'wpsc_save_category_set' ); //After saved 
Note: See TracChangeset for help on using the changeset viewer.