Plugin Directory

Changeset 451258


Ignore:
Timestamp:
10/15/2011 01:37:35 AM (14 years ago)
Author:
imaprogrammer
Message:

fixed comment delete problem

Location:
customcomment
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • customcomment/tags/2.1.6/CustomComment.php

    r451254 r451258  
    2727add_action('init', 'CComment_init');
    2828add_action( 'wp_ajax_CComment-submit', 'CComment_ajax_submit' );
    29 add_action('wp_ajax_my_action', 'CComent_ajax_respond');
     29//add_action('wp_ajax_my_action', 'CComent_ajax_respond');
    3030add_action('comment_form_after_fields', 'CComment_form');
    3131add_action('comment_form_logged_in_after', 'CComment_form');
     
    224224                    $CComment_field_required = $CComment_field_arr[2];
    225225                    if ($CComment_field_active == 1){
    226                         $active_button = '<input type="button" value="Deactivate" class="act" title="Click to deactivate this field" />';
     226                        $active_button = '<input type="button" value="Deactivate" class="cc_act" title="Click to deactivate this field" />';
    227227                        $color = "#FFFFFF";
    228228                    }
    229229                    else{
    230                         $active_button = '<input type="button" value="Activate" class="act" title="Click to activate this field" />';
     230                        $active_button = '<input type="button" value="Activate" class="cc_act" title="Click to activate this field" />';
    231231                        $color = "#EEEEEE";
    232232                    }
    233233                    $checked_required = '';
    234234                    if ($CComment_field_required == 1)
    235                         $required_button = '<input type="button" value="No" class="req" title="Click to make this field not required" />';
     235                        $required_button = '<input type="button" value="No" class="cc_req" title="Click to make this field not required" />';
    236236                    else
    237                         $required_button = '<input type="button" value="Yes" class="req" title="Click to make this field required" />';
     237                        $required_button = '<input type="button" value="Yes" class="cc_req" title="Click to make this field required" />';
    238238                    echo"
    239239                        <tr style=\"background-color:$color;\">
     
    245245                            </td>
    246246                            <td>
    247                                 <input type=\"button\" value=\"Edit\" name=\"del\" class=\"edit\" title=\"Click to edit this field\" />
     247                                <input type=\"button\" value=\"Edit\" name=\"del\" class=\"cc_edit\" title=\"Click to edit this field\" />
    248248                            </td>
    249249                            <td>
     
    254254                            </td>
    255255                            <td>
    256                                 <div><input type=\"button\" value=\"Delete\" name=\"del\" class=\"delete\" title=\"Click to delete this field\" /></div>
     256                                <div><input type=\"button\" value=\"Delete\" name=\"del\" class=\"cc_delete\" title=\"Click to delete this field\" /></div>
    257257                            </td>
    258258                        </tr>";
  • customcomment/tags/2.1.6/js/CComment.js

    r365561 r451258  
    88        });
    99    var working = false;
    10     jQuery(".delete").bind("click",function(e){
     10    jQuery(".cc_delete").bind("click",function(e){
    1111        e.preventDefault();
    1212        if(working) return false;
     
    3131        return false;
    3232    });
    33     jQuery(".edit").bind("click",function(e){
     33    jQuery(".cc_edit").bind("click",function(e){
    3434        e.preventDefault();
    3535        if(jQuery(this).val() == "Edit"){
     
    6060        return false;
    6161    });
    62     jQuery(".act").bind("click",function(e){
     62    jQuery(".cc_act").bind("click",function(e){
    6363        e.preventDefault();
    6464        if(working) return false;
     
    9797        return false;
    9898    });
    99     jQuery(".req").bind("click",function(e){
     99    jQuery(".cc_req").bind("click",function(e){
    100100        e.preventDefault();
    101101        if(working) return false;
  • customcomment/tags/2.1.6/readme.txt

    r451254 r451258  
    6565
    6666= 2.1.6 =
    67 now the extra fields that you create can be seen by the logged in users
     67now the extra fields that you create can be seen by the logged in users, the problem of deleting comments has been solved
    6868
    6969== Development Blog ==
  • customcomment/trunk/readme.txt

    r451254 r451258  
    44Tags: comment customization,comment,custom comment,comment field,customize comment,extra fields,extra field
    55Requires at least: 2.7
    6 Tested up to: 3.1
     6Tested up to: 3.2
    77Stable tag: 2.1.6
    88
Note: See TracChangeset for help on using the changeset viewer.