Changeset 451258
- Timestamp:
- 10/15/2011 01:37:35 AM (14 years ago)
- Location:
- customcomment
- Files:
-
- 4 edited
-
tags/2.1.6/CustomComment.php (modified) (4 diffs)
-
tags/2.1.6/js/CComment.js (modified) (4 diffs)
-
tags/2.1.6/readme.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
customcomment/tags/2.1.6/CustomComment.php
r451254 r451258 27 27 add_action('init', 'CComment_init'); 28 28 add_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'); 30 30 add_action('comment_form_after_fields', 'CComment_form'); 31 31 add_action('comment_form_logged_in_after', 'CComment_form'); … … 224 224 $CComment_field_required = $CComment_field_arr[2]; 225 225 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" />'; 227 227 $color = "#FFFFFF"; 228 228 } 229 229 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" />'; 231 231 $color = "#EEEEEE"; 232 232 } 233 233 $checked_required = ''; 234 234 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" />'; 236 236 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" />'; 238 238 echo" 239 239 <tr style=\"background-color:$color;\"> … … 245 245 </td> 246 246 <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\" /> 248 248 </td> 249 249 <td> … … 254 254 </td> 255 255 <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> 257 257 </td> 258 258 </tr>"; -
customcomment/tags/2.1.6/js/CComment.js
r365561 r451258 8 8 }); 9 9 var working = false; 10 jQuery(". delete").bind("click",function(e){10 jQuery(".cc_delete").bind("click",function(e){ 11 11 e.preventDefault(); 12 12 if(working) return false; … … 31 31 return false; 32 32 }); 33 jQuery(". edit").bind("click",function(e){33 jQuery(".cc_edit").bind("click",function(e){ 34 34 e.preventDefault(); 35 35 if(jQuery(this).val() == "Edit"){ … … 60 60 return false; 61 61 }); 62 jQuery(". act").bind("click",function(e){62 jQuery(".cc_act").bind("click",function(e){ 63 63 e.preventDefault(); 64 64 if(working) return false; … … 97 97 return false; 98 98 }); 99 jQuery(". req").bind("click",function(e){99 jQuery(".cc_req").bind("click",function(e){ 100 100 e.preventDefault(); 101 101 if(working) return false; -
customcomment/tags/2.1.6/readme.txt
r451254 r451258 65 65 66 66 = 2.1.6 = 67 now the extra fields that you create can be seen by the logged in users 67 now the extra fields that you create can be seen by the logged in users, the problem of deleting comments has been solved 68 68 69 69 == Development Blog == -
customcomment/trunk/readme.txt
r451254 r451258 4 4 Tags: comment customization,comment,custom comment,comment field,customize comment,extra fields,extra field 5 5 Requires at least: 2.7 6 Tested up to: 3. 16 Tested up to: 3.2 7 7 Stable tag: 2.1.6 8 8
Note: See TracChangeset
for help on using the changeset viewer.