[buddypress-trac] [BuddyPress] #2141: Forum Topic delete button warning before deletion

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Mar 9 22:44:57 UTC 2010


#2141: Forum Topic delete button warning before deletion
-------------------------------------+--------------------------------------
Reporter:  snark                     |       Owner:       
    Type:  defect                    |      Status:  new  
Priority:  major                     |   Milestone:  1.2.2
Keywords:  needs-patch dev-feedback  |  
-------------------------------------+--------------------------------------
Changes (by cnorris23):

  * keywords:  => needs-patch dev-feedback


Comment:

 The problem here is in with bp-core-css-js.php with the function:

 {{{
 function bp_core_confirmation_js() {
         global $current_blog;

         if ( $current_blog->blog_id != BP_ROOT_BLOG )
                 return false;
 ?>
         <script type="text/javascript"> jQuery(document).ready( function()
 { jQuery("a.confirm").click( function() { if ( confirm( '<?php _e( 'Are
 you sure?', 'buddypress' ) ?>' ) ) return true; else return false; });
 });</script>
 <?php
 }
 add_action( 'wp_head', 'bp_core_confirmation_js', 100 );
 }}}

 The jQuery code needed to trigger the confirmation dialog is only included
 if the current blog being visited is the same as the root blog. I don't
 know if there's a particular reason for only showing it on the root blog,
 so I didn't write a patch. I do know that there are multiple links with
 the {{{confirm}}} class added, and they are not getting any confirmation
 dialog.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2141#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list